You are here

function webform_validation_parent_tree in Webform Validation 6

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

Recursively add the parents for the element, to be used as 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 204

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