function _webform_client_form_submit_process in Webform 5.2
Same name and namespace in other branches
- 5 webform.module \_webform_client_form_submit_process()
- 6.3 webform.module \_webform_client_form_submit_process()
- 6.2 webform.module \_webform_client_form_submit_process()
- 7.4 webform.module \_webform_client_form_submit_process()
- 7.3 webform.module \_webform_client_form_submit_process()
Post processes the submission tree with any updates from components.
Parameters
$node: The full webform node.
$form_values: The form values for the form.
$types: Optional. Specific types to perform processing.
$parent: Internal use. The current parent CID whose children are being processed.
1 call to _webform_client_form_submit_process()
File
- ./
webform.module, line 1747
Code
function _webform_client_form_submit_process($node, &$form_values, $types = NULL, $parent = 0) {
if (is_array($form_values)) {
foreach ($form_values as $form_key => $value) {
$cid = webform_get_cid($node, $form_key, $parent);
if (is_array($value) && $node->webform['components'][$cid]['type'] == 'fieldset') {
_webform_client_form_submit_process($node, $form_values[$form_key], $types, $cid);
}
$component = $node->webform['components'][$cid];
$submit_function = '_webform_submit_' . $component['type'];
if (function_exists($submit_function) && (!isset($types) || in_array($component['type'], $types))) {
// Call the component process submission function.
$submit_function($form_values[$component['form_key']], $component);
}
}
}
}