[ Index ]

MailPress 544

[ 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    = 100;
  10  
  11  	function submitted($field)
  12      {
  13          if (!isset($_POST[$this->prefix][$field->form_id][$field->id]))
  14          {
  15              $field->submitted['value'] = false;
  16              $field->submitted['text']  = __('not selected', MP_TXTDOM);
  17              return $field;
  18          }
  19          return parent::submitted($field);
  20      }
  21  }
  22  new MP_Form_field_type_button(__('Button', MP_TXTDOM));


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1