Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.02 KB | None | 0 0
  1. class GF_Field_Attendees extends GF_Field {
  2.  
  3.     public $type = 'attendees';
  4.  
  5.     public function get_form_editor_field_title() {
  6.         return esc_attr__( 'Attendees', 'gravityforms' );
  7.     }
  8.  
  9.     public function get_form_editor_button() {
  10.         return array(
  11.             'group' => 'advanced_fields',
  12.             'text'  => $this->get_form_editor_field_title(),
  13.         );
  14.     }
  15.  
  16.     public function get_form_editor_field_settings() {
  17.         return array(
  18.             'conditional_logic_field_setting',
  19.             'prepopulate_field_setting',
  20.             'error_message_setting',
  21.             'label_setting',
  22.             'admin_label_setting',
  23.             'rules_setting',
  24.             'duplicate_setting',
  25.             'description_setting',
  26.             'css_class_setting',
  27.         );
  28.     }
  29.  
  30.     public function is_conditional_logic_supported() {
  31.         return true;
  32.     }
  33.  
  34.     public function get_field_input( $form, $value = '', $entry = null ) {
  35.         $is_entry_detail = $this->is_entry_detail(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement