public static function wf_crm_admin_help::addHelp in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 7.4 includes/wf_crm_admin_help.inc \wf_crm_admin_help::addHelp()
Add Civi help icon to a FAPI field
Parameters
array $field:
string $topic:
string|null $title:
2 calls to wf_crm_admin_help::addHelp()
- wf_crm_admin_form::help in includes/
wf_crm_admin_form.inc - wf_crm_contact_component_form_help in includes/
contact_component.inc - Adds help to the form
File
- includes/
wf_crm_admin_help.inc, line 544 - 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 addHelp(&$field, $topic, $title = NULL) {
$title = $title ? $title : $field['#title'];
$field['#title'] .= ' ' . self::helpIcon($topic, $title);
}