function webform_validation_rule_get_formkeys in Webform Validation 6
Same name and namespace in other branches
- 7 webform_validation.module \webform_validation_rule_get_formkeys()
Get an array of formkeys for all components that have been assigned to a rule
1 call to webform_validation_rule_get_formkeys()
- webform_validation_validate in ./
webform_validation.module - Webform validation handler to validate against the given rules
File
- ./
webform_validation.module, line 216
Code
function webform_validation_rule_get_formkeys($rule) {
$formkeys = array();
if (isset($rule['components'])) {
foreach ($rule['components'] as $cid => $component) {
$formkeys[] = $component['form_key'];
}
}
return $formkeys;
}