function webform_civicrm_component_token in Webform CiviCRM Integration 6.2
Same name and namespace in other branches
- 7.2 webform_civicrm_admin.inc \webform_civicrm_component_token()
Look-up the webform token for a field
1 call to webform_civicrm_component_token()
- _webform_civicrm_webform_component_form_alter in ./
webform_civicrm_admin.inc - Alter back-end webform component edit forms. Called by hook_form_alter() whenever editing a webform component.
File
- ./
webform_civicrm_admin.inc, line 1244
Code
function webform_civicrm_component_token($node, $cid) {
module_load_include('inc', 'webform', 'includes/webform.components');
$component = $node->webform['components'][$cid];
$parents = webform_component_parent_keys($node, $component);
return '%value[' . implode('][', $parents) . ']';
}