function webform_validation_rule_get_formkeys in Webform Validation 7
Same name and namespace in other branches
- 6 webform_validation.module \webform_validation_rule_get_formkeys()
Get array of formkeys for all components that have been assigned to a rule.
Deprecated
in webform_validation:7.x-1.14 and is removed from webform_validation:7.x-2.0. No longer used.
See also
https://www.drupal.org/project/webform_validation/issues/2841817
File
- ./
webform_validation.module, line 334
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;
}