function _webform_validation_get_names_of_rule_components in Webform Validation 7
Return an array of the names of the components in a validation rule.
Parameters
array $rule: Array of information about a validation rule.
Return value
array Array of the filtered names of the components in $rule.
1 call to _webform_validation_get_names_of_rule_components()
- webform_validation_webform_validation_validate in ./
webform_validation.validators.inc - Implements hook_webform_validation_validate().
File
- ./
webform_validation.validators.inc, line 996 - Provides validation functionality and hooks.
Code
function _webform_validation_get_names_of_rule_components(array $rule) {
$names = array();
foreach ($rule['components'] as $component) {
$names[] = _webform_filter_xss($component['name']);
}
return $names;
}