You are here

function webform_validation_rule_components_basic in Webform Validation 7

Same name and namespace in other branches
  1. 6 webform_validation.rules.inc \webform_validation_rule_components_basic()

Create basic version of component info.

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()
webform_validation_manage_overview_form in ./webform_validation.admin.inc
Form to list and reorder the rules assigned to a webform.

File

./webform_validation.rules.inc, line 109
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;
}