private function wf_crm_admin_component::alterOptionsElement in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 7.4 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
Code
private function alterOptionsElement() {
$this->form['items']['options']['#key_type_toggle'] = t('Show CiviCRM values (keys)');
$this->form['items']['options']['#key_type_toggled'] = TRUE;
}