NF_Fields_Submit

Class NF_Field_Button.

Defined (1)

The class is defined in the following location(s).

/includes/Fields/Submit.php  
  1. class NF_Fields_Submit extends NF_Fields_Button 
  2. protected $_name = 'submit'; 
  3.  
  4. protected $_section = 'common'; 
  5.  
  6. protected $_icon = 'square'; 
  7.  
  8. protected $_type = 'submit'; 
  9.  
  10. protected $_templates = 'submit'; 
  11.  
  12. protected $_wrap_template = 'wrap-no-label'; 
  13.  
  14. protected $_settings = array( 'label', 'timed_submit', 'processing_label', 'classes', 'key' ); 
  15.  
  16. public function __construct() 
  17. parent::__construct(); 
  18.  
  19. $this->_nicename = __( 'Submit', 'ninja-forms' ); 
  20.  
  21. $this->_settings[ 'label' ][ 'width' ] = 'full'; 
  22.  
  23. add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) ); 
  24.  
  25. function hide_field_type( $field_types ) 
  26. $field_types[] = $this->_name; 
  27.  
  28. return $field_types; 
  29.