You are here

private function wf_crm_admin_component::componentToken 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::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

wf_crm_admin_component

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]';
}