You are here

private function wf_crm_admin_component::alterOptionsElement in Webform CiviCRM Integration 7.4

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

When a CiviCRM field has no options but is rendered as a select Customize the options_element form

1 call to wf_crm_admin_component::alterOptionsElement()
wf_crm_admin_component::alterForm in includes/wf_crm_admin_component.inc
Alter back-end webform component edit forms. Called by hook_form_alter() whenever editing a webform component.

File

includes/wf_crm_admin_component.inc, line 350

Class

wf_crm_admin_component

Code

private function alterOptionsElement() {
  $this->form['items']['options']['#key_type_toggle'] = t('Show CiviCRM values (keys)');
  $this->form['items']['options']['#key_type_toggled'] = TRUE;
}