You are here

function webform_validation_parent_tree in Webform Validation 7

Same name and namespace in other branches
  1. 6 webform_validation.module \webform_validation_parent_tree()

Recursively add the parents for the element.

These are used as the first argument to form_set_error().

1 call to webform_validation_parent_tree()
webform_validation_validate in ./webform_validation.module
Webform validation handler to validate against the given rules.

File

./webform_validation.module, line 318

Code

function webform_validation_parent_tree($cid, $components) {
  $output = '';
  if ($pid = $components[$cid]['pid']) {
    $output .= webform_validation_parent_tree($pid, $components);
    $output .= $components[$pid]['form_key'] . '][';
  }
  return $output;
}