You are here

function field_validation_dynamic_delete_rule in Field Validation 7

Delete a rule.

2 calls to field_validation_dynamic_delete_rule()
field_validation_delete_rule_submit in ./field_validation.admin.inc
Submit handler to delete a rule
field_validation_field_delete in ./field_validation.module
Implements hook_field_delete().

File

./field_validation.module, line 309

Code

function field_validation_dynamic_delete_rule($ruleid) {

  // delete rule
  db_delete('field_validation_rule')
    ->condition('ruleid', $ruleid)
    ->execute();
}