You are here

function webform_validation_get_validators_selection in Webform Validation 7

Same name and namespace in other branches
  1. 6 webform_validation.validators.inc \webform_validation_get_validators_selection()

Return an array of the names of the validators.

Return value

array Array of with keys being validator IDs and values validator names.

1 call to webform_validation_get_validators_selection()
webform_validation_manage_overview_form in ./webform_validation.admin.inc
Form to list and reorder the rules assigned to a webform.

File

./webform_validation.validators.inc, line 1095
Provides validation functionality and hooks.

Code

function webform_validation_get_validators_selection() {
  $selection = array();
  $validators = webform_validation_get_validators();
  if ($validators) {
    foreach ($validators as $validator_key => $validator_info) {
      $selection[$validator_key] = $validator_info['name'];
    }
  }
  return $selection;
}