public static function wf_crm_admin_help::helpTemplate 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::helpTemplate()
Copied from Core CiviCRM's templates/notifications.tpl
Return value
string
2 calls to wf_crm_admin_help::helpTemplate()
- wf_crm_admin_form::addResources in includes/
wf_crm_admin_form.inc - Add necessary css & js
- _webform_edit_civicrm_contact in includes/
contact_component.inc - Implements _webform_edit_component().
File
- includes/
wf_crm_admin_help.inc, line 524 - 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 helpTemplate() {
return '
<div class="crm-container">
<div id="crm-notification-container" style="display:none">
<div id="crm-notification-alert" class="#{type}">
<div class="icon ui-notify-close" title="' . t('close') . '"> </div>
<a class="ui-notify-cross ui-notify-close" href="#" title="' . t('close') . '">x</a>
<h1>#{title}</h1>
<div class="notify-content">#{text}</div>
</div>
</div>
</div>';
}