function field_validation_get_rule in Field Validation 7
Get a rule entry
2 calls to field_validation_get_rule()
- field_validation_delete_rule in ./
field_validation.admin.inc - Confirmation form to delete a rule
- field_validation_manage_rule in ./
field_validation.admin.inc - Callback function to add or edit a validation rule
File
- ./
field_validation.rules.inc, line 11 - provides API and management functions for the field validation rules
Code
function field_validation_get_rule($ruleid) {
$result = db_query("SELECT * FROM {field_validation_rule} WHERE ruleid = :ruleid", array(
':ruleid' => $ruleid,
), array(
'fetch' => PDO::FETCH_ASSOC,
));
$rule = $result
->fetchAssoc();
return $rule;
}