[ Index ]

MailPress 7.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/options/form/field_types/button/ -> button.php (source)

   1  <?php
   2  class MP_Form_field_type_button extends MP_form_field_type_
   3  {
   4      var $file    = __FILE__;
   5  
   6      var $id     = 'button';
   7  
   8      var $category = 'html';
   9      var $order    = 200;
  10  
  11  	function submitted( $field )
  12      {
  13          $this->field = $field;
  14  
  15          $value = $this->get_value();
  16  
  17          if ( !isset( $value ) )
  18          {
  19              $this->field->submitted['value'] = false;
  20              $this->field->submitted['text']  = __( 'not selected', 'MailPress' );
  21              return $this->field;
  22          }
  23          return parent::submitted( $this->field );
  24      }
  25  }
  26  new MP_Form_field_type_button( __( 'Button', 'MailPress' ) );


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1