private function wf_crm_admin_component::componentToken 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::componentToken()
Look-up the webform token for a field
Parameters
$cid:
Return value
string
1 call to wf_crm_admin_component::componentToken()
- 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 435
Class
Code
private function componentToken($cid) {
module_load_include('inc', 'webform', 'includes/webform.components');
$component = $this->node->webform['components'][$cid];
$parents = webform_component_parent_keys($this->node, $component);
return '[submission:values:' . implode(':', $parents) . ':nolabel]';
}