You are here

private function wf_crm_admin_form::addToggle in Webform CiviCRM Integration 7.4

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

Build select all/none js links for a fieldset

7 calls to wf_crm_admin_form::addToggle()
wf_crm_admin_form::buildActivityTab in includes/wf_crm_admin_form.inc
Activity settings
wf_crm_admin_form::buildCaseTab in includes/wf_crm_admin_form.inc
Case settings FIXME: This is exactly the same code as buildGrantTab. More utilities and less boilerplate needed.
wf_crm_admin_form::buildContactTab in includes/wf_crm_admin_form.inc
Build fields for a contact
wf_crm_admin_form::buildContributionTab in includes/wf_crm_admin_form.inc
Contribution settings
wf_crm_admin_form::buildGrantTab in includes/wf_crm_admin_form.inc
Grant settings FIXME: This is nearly the same code as buildCaseTab. More utilities and less boilerplate needed.

... See full list

File

includes/wf_crm_admin_form.inc, line 1430
Webform CiviCRM module's admin form.

Class

wf_crm_admin_form
@file Webform CiviCRM module's admin form.

Code

private function addToggle($name) {
  return array(
    '#markup' => '<div class="web-civi-js-select">
      <a href="javascript:wfCiviAdmin.selectReset(' . "'all', '#{$name}'" . ')">' . t('Select All') . '</a> |
      <a href="javascript:wfCiviAdmin.selectReset(' . "'none', '#{$name}'" . ')">' . t('Select None') . '</a> |
      <a href="javascript:wfCiviAdmin.selectReset(' . "'reset', '#{$name}'" . ')">' . t('Restore') . '</a>
    </div>',
  );
}