function webform_component_parent_keys in Webform 6.3
Same name and namespace in other branches
- 7.4 includes/webform.components.inc \webform_component_parent_keys()
- 7.3 includes/webform.components.inc \webform_component_parent_keys()
Find a components parents within a node.
5 calls to webform_component_parent_keys()
- webform_component_list in includes/
webform.components.inc - Create a list of components suitable for a select list.
- webform_mollom_form_info in ./
webform.module - Implements hook_mollom_form_info().
- webform_webform_submission_render_alter in ./
webform.module - Implements hook_webform_submission_render_alter().
- _webform_filter_values in ./
webform.module - Filters all special tokens provided by webform, such as %post and %profile.
- _webform_render_file in components/
file.inc - Implements _webform_render_component().
File
- includes/
webform.components.inc, line 995 - Webform module component handling.
Code
function webform_component_parent_keys($node, $component) {
$parents = array(
$component['form_key'],
);
$pid = $component['pid'];
while ($pid) {
$parents[] = $node->webform['components'][$pid]['form_key'];
$pid = $node->webform['components'][$pid]['pid'];
}
return array_reverse($parents);
}