You are here

function field_validation_delete_rule_submit in Field Validation 7

Submit handler to delete a rule

File

./field_validation.admin.inc, line 308
Manages validation rules administration UI

Code

function field_validation_delete_rule_submit($form, &$form_state) {
  $ruleid = $form_state['values']['ruleid'];
  field_validation_dynamic_delete_rule($ruleid);
  module_invoke_all('field_validation', 'rule', 'delete', $ruleid);
}