當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GFAddOn::init_admin方法代碼示例

本文整理匯總了PHP中GFAddOn::init_admin方法的典型用法代碼示例。如果您正苦於以下問題:PHP GFAddOn::init_admin方法的具體用法?PHP GFAddOn::init_admin怎麽用?PHP GFAddOn::init_admin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GFAddOn的用法示例。


在下文中一共展示了GFAddOn::init_admin方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init_admin

 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'));
 }
開發者ID:pagegwood,項目名稱:Gravity-Forms-Email-Blacklist,代碼行數:7,代碼來源:gf_email_blacklist.php

示例2: init_admin

 /**
  * 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);
 }
開發者ID:fjbeteiligung,項目名稱:development,代碼行數:10,代碼來源:class-gf-feed-addon.php

示例3: init_admin

 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);
 }
開發者ID:tlandn,項目名稱:akvo-web,代碼行數:8,代碼來源:webapi.php

示例4: init_admin

 /**
  * 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'));
 }
開發者ID:wp-premium,項目名稱:gravityformssignature,代碼行數:12,代碼來源:class-gf-signature.php

示例5: init_admin

 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();
 }
開發者ID:qhuit,項目名稱:dcosta,代碼行數:18,代碼來源:class-gf-survey.php

示例6: 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'));
         }
     }
 }
開發者ID:pauldowlin,項目名稱:gravity_forms_multi_entry,代碼行數:18,代碼來源:class-gf-multi-entry.php

示例7: init_admin

 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();
 }
開發者ID:ajay786singh,項目名稱:viriditas-1,代碼行數:20,代碼來源:class-gf-signature.php

示例8: array

 /**
  * 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();
 }
開發者ID:roarmoser,項目名稱:gv1,代碼行數:17,代碼來源:class-settings.php

示例9: 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();
 }
開發者ID:GravityPDF,項目名稱:gravityformspolls,代碼行數:23,代碼來源:class-gf-polls.php

示例10: init_admin

 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();
 }
開發者ID:sdh100shaun,項目名稱:pantheon,代碼行數:21,代碼來源:polls.php

示例11: init_admin

 public function init_admin()
 {
     parent::init_admin();
     GF_Field_Repeater::init_admin();
     GF_Field_Repeater_End::init_admin();
 }
開發者ID:kodie,項目名稱:gravityforms-repeater,代碼行數:6,代碼來源:repeater.php

示例12: init_admin

 public function init_admin()
 {
     parent::init_admin();
     // add tasks or filters here that you want to perform only in admin
 }
開發者ID:jjozwiak,項目名稱:gravityforms-csv-schedule-export,代碼行數:5,代碼來源:scheduled-export.php

示例13: init_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();
 }
開發者ID:GravityPDF,項目名稱:gravityformsquiz,代碼行數:24,代碼來源:class-gf-quiz.php

示例14: 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);
 }
開發者ID:hughc,項目名稱:Gravity-Forms-Business-Hours,代碼行數:15,代碼來源:gravity-forms-business-hours.php

示例15: init_admin

 public function init_admin()
 {
     parent::init_admin();
     add_filter('gravityflow_settings_menu_tabs', array($this, 'app_settings_tabs'));
 }
開發者ID:jakejackson1,項目名稱:gravityflow,代碼行數:5,代碼來源:class-extension.php


注:本文中的GFAddOn::init_admin方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。