You are here

function webform_dynamic_delete_rule in Webform Validation 6

Same name and namespace in other branches
  1. 7 webform_validation.rules.inc \webform_dynamic_delete_rule()

Delete a rule and dependencies

2 calls to webform_dynamic_delete_rule()
webform_validation_delete_rule_submit in ./webform_validation.admin.inc
Submit handler to delete a rule
webform_validation_nodeapi in ./webform_validation.module
Implementation of hook_nodeapi().

File

./webform_validation.rules.inc, line 84
provides API and management functions for the webform validation rules

Code

function webform_dynamic_delete_rule($ruleid) {
  db_query("DELETE FROM {webform_validation_rule} WHERE ruleid = %d", $ruleid);
  db_query("DELETE FROM {webform_validation_rule_components} WHERE ruleid = %d", $ruleid);
}