当前位置: 首页>>代码示例>>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;未经允许,请勿转载。