예제 #1
0
 /**
  * Looks for the form_settings_ui() method and the form_settings_js() method and add hooks
  * for the existing methods. Also sets $has_form_settings property to true, indicating that
  * the custom form settings tab should be displayed.
  *
  */
 public function enqueue_form_settings()
 {
     GWPerks::$has_form_settings = true;
     if (method_exists($this, 'form_settings_ui')) {
         add_action('gws_form_settings', array(&$this, 'form_settings_ui'));
     }
     if (method_exists($this, 'form_settings_js')) {
         add_action('gform_editor_js', array(&$this, 'form_settings_js'));
     }
 }