public function init_admin()
 {
     parent::init_admin();
     add_action('gform_editor_js', array($this, 'gf_emailblacklist_gform_editor_js'));
     add_action('gform_field_advanced_settings', array($this, 'gf_email_blacklist_field_settings'), 10, 2);
     add_filter('gform_tooltips', array($this, 'gf_emailblacklist_field_tooltips'));
 }
 /**
  * Override this function to add initialization code (i.e. hooks) for the admin site (WP dashboard)
  */
 public function init_admin()
 {
     parent::init_admin();
     add_filter('gform_notification_events', array($this, 'notification_events'), 10, 2);
     add_filter('gform_notes_avatar', array($this, 'notes_avatar'), 10, 2);
     add_action('gform_post_form_duplicated', array($this, 'post_form_duplicated'), 10, 2);
 }
Exemple #3
0
 public function init_admin()
 {
     parent::init_admin();
     // update the cache meta
     add_action("gform_after_update_entry", array($this, 'entry_updated'), 10, 2);
     add_action("gform_update_status", array($this, 'update_entry_status'), 10, 2);
     add_action("gform_after_save_form", array($this, 'after_save_form'), 10, 2);
 }
 /**
  * Initialize the admin specific hooks.
  */
 public function init_admin()
 {
     parent::init_admin();
     add_filter('gform_tooltips', array($this, 'tooltips'));
     add_action('gform_field_appearance_settings', array($this, 'field_settings'), 10, 2);
     add_action('gform_delete_lead', array($this, 'delete_lead'));
     add_action('gform_delete_entries', array($this, 'delete_entries'));
     add_filter('gform_admin_pre_render', array($this, 'edit_lead_script'));
 }
Exemple #5
0
 public function init_admin()
 {
     // form editor
     add_filter('gform_add_field_buttons', array($this, 'add_survey_field'));
     add_filter('gform_field_type_title', array($this, 'assign_title'), 10, 2);
     add_action('gform_field_standard_settings', array($this, 'survey_field_settings'), 10, 2);
     add_filter('gform_tooltips', array($this, 'add_survey_tooltips'));
     // merge tags
     add_filter('gform_admin_pre_render', array($this, 'add_merge_tags'));
     // display results on entry list
     add_filter('gform_entries_field_value', array($this, 'display_entries_field_value'), 10, 4);
     // declare arrays on form import
     add_filter('gform_import_form_xml_options', array($this, 'import_file_options'));
     // contacts
     add_filter('gform_contacts_tabs_contact_detail', array($this, 'add_tab_to_contact_detail'), 10, 2);
     add_action('gform_contacts_tab_survey', array($this, 'contacts_tab'));
     parent::init_admin();
 }
 public function init_admin()
 {
     parent::init_admin();
     $settings = $this->get_multi_entry_settings();
     if (!empty($settings)) {
         if ($settings['enabled'] == 1) {
             //Checks if multi entry is enabled and creates the db table
             add_action("gform_admin_pre_render", array($this, 'pre_render_function'));
             //Updates tables after creation
             //Hooks into save_form and updates table if any changes are detected
             add_action("gform_after_save_form", array($this, 'update_multi_table'));
             //Adds our delimiter checkbox to different fields in Form Editor
             add_action('gform_field_standard_settings', array($this, 'my_standard_settings'), 10, 2);
             add_action('gform_editor_js', array($this, 'editor_script'));
             add_filter('gform_tooltips', array($this, 'add_encryption_tooltips'));
         }
     }
 }
 public function init_admin()
 {
     parent::init_admin();
     add_filter('gform_entry_field_value', array($this, 'signature_entry_detail'), 10, 5);
     add_filter('gform_entries_field_value', array($this, 'signature_entry_list'), 10, 3);
     add_filter('gform_add_field_buttons', array($this, 'add_signature_field'));
     add_action('gform_editor_js', array($this, 'editor_script'));
     add_filter('gform_tooltips', array($this, 'tooltips'));
     add_action('gform_field_standard_settings', array($this, 'field_settings'), 10, 2);
     add_action('gform_field_advanced_settings', array($this, 'advanced_field_settings'), 10, 2);
     add_filter('gform_field_type_title', array($this, 'signature_title'), 10, 2);
     add_action('gform_editor_js_set_default_values', array($this, 'signature_label'));
     add_action('gform_delete_lead', array($this, 'delete_lead'));
     add_filter('gform_admin_pre_render', array($this, 'edit_lead_script'));
     //displays signature input
     add_action('gform_field_input', array($this, 'signature_input'), 10, 5);
     //displays saved signature
     add_filter('gform_merge_tag_filter', array($this, 'merge_tag_filter'), 10, 4);
     $this->maybe_save_signature();
 }
Exemple #8
0
 /**
  * Run actions when initializing admin
  *
  * Triggers the license key notice
  *
  * @return void
  */
 function init_admin()
 {
     $this->_load_license_handler();
     $this->_capabilities_app_settings = apply_filters('gravityview_settings_capability', 'manage_options');
     $this->license_key_notice();
     add_filter('gform_addon_app_settings_menu_gravityview', array($this, 'modify_app_settings_menu_title'));
     /** @since 1.7.6 */
     add_action('network_admin_menu', array($this, 'add_network_menu'));
     parent::init_admin();
 }
 /**
  * Initialize the admin specific hooks.
  */
 public function init_admin()
 {
     //form editor
     add_action('gform_field_standard_settings', array($this, 'poll_field_settings'), 10, 2);
     add_filter('gform_tooltips', array($this, 'add_poll_field_tooltips'));
     add_action('gform_after_save_form', array($this, 'after_save_form'), 10, 2);
     //display poll results on entry list
     add_filter('gform_entries_field_value', array($this, 'display_entries_field_value'), 10, 4);
     //merge tags
     add_filter('gform_admin_pre_render', array($this, 'add_merge_tags'));
     //update the cache
     add_action('gform_after_update_entry', array($this, 'entry_updated'), 10, 2);
     add_action('gform_update_status', array($this, 'update_entry_status'), 10, 2);
     // contacts
     add_filter('gform_contacts_tabs_contact_detail', array($this, 'add_tab_to_contact_detail'), 10, 2);
     add_action('gform_contacts_tab_polls', array($this, 'contacts_tab'));
     // Adds the polls action to the shortcode builder UI
     add_filter('gform_shortcode_builder_actions', array($this, 'add_polls_shortcode_ui_action'));
     parent::init_admin();
 }
Exemple #10
0
 protected function init_admin()
 {
     //form editor
     add_filter('gform_add_field_buttons', array($this, 'add_poll_field'));
     add_action('gform_field_standard_settings', array($this, 'poll_field_settings'), 10, 2);
     add_filter('gform_tooltips', array($this, 'add_poll_field_tooltips'));
     add_action('gform_after_save_form', array($this, 'after_save_form'), 10, 2);
     add_filter('gform_field_type_title', array($this, 'assign_title'), 10, 2);
     //display poll results on entry detail & entry list
     add_filter('gform_entry_field_value', array($this, 'display_poll_on_entry_detail'), 10, 4);
     add_filter('gform_entries_field_value', array($this, 'display_entries_field_value'), 10, 3);
     //merge tags
     add_filter('gform_admin_pre_render', array($this, 'add_merge_tags'));
     //update the cache
     add_action('gform_after_update_entry', array($this, 'entry_updated'), 10, 2);
     add_action('gform_update_status', array($this, 'update_entry_status'), 10, 2);
     // contacts
     add_filter('gform_contacts_tabs_contact_detail', array($this, 'add_tab_to_contact_detail'), 10, 2);
     add_action('gform_contacts_tab_polls', array($this, 'contacts_tab'));
     parent::init_admin();
 }
 public function init_admin()
 {
     parent::init_admin();
     GF_Field_Repeater::init_admin();
     GF_Field_Repeater_End::init_admin();
 }
 public function init_admin()
 {
     parent::init_admin();
     // add tasks or filters here that you want to perform only in admin
 }
 /**
  * Initialize the admin specific hooks.
  */
 public function init_admin()
 {
     // form editor
     add_action('gform_field_standard_settings', array($this, 'quiz_field_settings'), 10, 2);
     add_filter('gform_tooltips', array($this, 'add_quiz_tooltips'));
     // display quiz results on entry detail & entry list
     add_filter('gform_entries_field_value', array($this, 'display_entries_field_value'), 10, 4);
     if ($this->is_gravityforms_supported('2.0-beta-3')) {
         add_filter('gform_entry_detail_meta_boxes', array($this, 'register_meta_box'), 10, 3);
     } else {
         add_action('gform_entry_detail_sidebar_middle', array($this, 'entry_detail_sidebar_middle'), 10, 2);
     }
     // merge tags
     add_filter('gform_admin_pre_render', array($this, 'add_merge_tags'));
     // declare arrays on form import
     add_filter('gform_import_form_xml_options', array($this, 'import_file_options'));
     //add the contacts tab
     add_filter('gform_contacts_tabs_contact_detail', array($this, 'add_tab_to_contact_detail'), 10, 2);
     add_action('gform_contacts_tab_quiz', array($this, 'contacts_tab'));
     parent::init_admin();
 }
 /**
  * Register functions to be called in the admin
  * @return void
  */
 public function init_admin()
 {
     parent::init_admin();
     add_action('gform_entries_field_value', array($this, 'business_hours_entries'), 10, 3);
     add_action('gform_entry_field_value', array($this, 'display_entry_field_value'), 10, 4);
     add_filter('gform_add_field_buttons', array($this, 'add_field_button'));
     add_action('gform_editor_js', array($this, 'editor_script'));
     add_action('gform_editor_js_set_default_values', array($this, 'set_defaults'));
     add_filter('gform_field_content', array($this, 'business_hours_field_admin'), 10, 5);
     add_filter('gform_field_type_title', array($this, 'field_type_title'), 10);
 }
 public function init_admin()
 {
     parent::init_admin();
     add_filter('gravityflow_settings_menu_tabs', array($this, 'app_settings_tabs'));
 }
 public function init_admin()
 {
     add_filter('gform_field_type_title', array($this, 'assign_title'), 10, 2);
     // form editor
     add_filter('gform_add_field_buttons', array($this, 'add_quiz_field'));
     add_action('gform_field_standard_settings', array($this, 'quiz_field_settings'), 10, 2);
     add_action('gform_editor_js', array($this, 'quiz_editor_script'));
     add_filter('gform_tooltips', array($this, 'add_quiz_tooltips'));
     // display quiz results on entry detail & entry list
     add_filter('gform_entries_field_value', array($this, 'display_entries_field_value'), 10, 4);
     add_action('gform_entry_detail_sidebar_middle', array($this, 'entry_detail_sidebar_middle'), 10, 2);
     // merge tags
     add_filter('gform_admin_pre_render', array($this, 'add_merge_tags'));
     // declare arrays on form import
     add_filter('gform_import_form_xml_options', array($this, 'import_file_options'));
     //add the contacts tab
     add_filter('gform_contacts_tabs_contact_detail', array($this, 'add_tab_to_contact_detail'), 10, 2);
     add_action('gform_contacts_tab_quiz', array($this, 'contacts_tab'));
     parent::init_admin();
 }