You are here

public static function wf_crm_admin_help::fieldset in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 7.5 includes/wf_crm_admin_help.inc \wf_crm_admin_help::fieldset()

Get help for a fieldset

1 call to wf_crm_admin_help::fieldset()
wf_crm_admin_help in includes/wf_crm_admin_help.inc
Ajax page callback

File

includes/wf_crm_admin_help.inc, line 488
Admin form inline-help.

Class

wf_crm_admin_help
Class wf_crm_admin_help Adding a static function to this class with the same name as a field will magically add pop-up help for that field to the admin form.

Code

public static function fieldset($param) {
  list(, $set) = explode('_', $param);
  civicrm_initialize();
  module_load_include('inc', 'webform_civicrm', 'includes/utils');
  $sets = wf_crm_get_fields('sets');
  if (!empty($sets[$set]['help_text'])) {
    print '<p>' . $sets[$set]['help_text'] . '</p>';
  }
}