You are here

function field_validation_rule_load in Field Validation 7

Load a validation rule.

Parameters

$name: This validation rule's name value.

Return value

An array of options for the specified validation rule.

1 call to field_validation_rule_load()
field_validation_manage_rule in ./field_validation.admin.inc
Callback function to add or edit a validation rule
1 string reference to 'field_validation_rule_load'
field_validation_manage_rule in ./field_validation.admin.inc
Callback function to add or edit a validation rule

File

./field_validation.module, line 277

Code

function field_validation_rule_load($name) {

  // Use Ctools export API to fetch this rule.
  ctools_include('export');
  $result = ctools_export_load_object('field_validation_rule', 'names', array(
    $name,
  ));
  if (isset($result[$name])) {
    return $result[$name];
  }
}