function webform_validation_rule_components_basic in Webform Validation 6
Same name and namespace in other branches
- 7 webform_validation.rules.inc \webform_validation_rule_components_basic()
This helper function takes a list of full component info arrays and returns a basic representation of it for output purposes.
1 call to webform_validation_rule_components_basic()
- theme_webform_validation_manage_overview in ./
webform_validation.admin.inc - Themable function to list the rules assigned to a webform
File
- ./
webform_validation.rules.inc, line 71 - provides API and management functions for the webform validation rules
Code
function webform_validation_rule_components_basic($components) {
$ret = array();
if ($components) {
foreach ($components as $cid => $component) {
$ret[$cid] = _webform_filter_xss($component['name']);
}
}
return $ret;
}