You are here

function webform_validation_node_delete in Webform Validation 7

Implements hook_node_delete().

File

./webform_validation.module, line 435

Code

function webform_validation_node_delete($node) {
  $rules = webform_validation_get_node_rules($node->nid);
  if ($rules) {
    $transaction = db_transaction();
    foreach (array_keys($rules) as $ruleid) {
      webform_dynamic_delete_rule($ruleid);
    }
  }
}