webform_dynamic_delete_rule

  1. webform_validation
    1. 7
    2. 6
Versions
6 – 7 webform_dynamic_delete_rule($ruleid)

Delete a rule and dependencies

Code

./webform_validation.rules.inc, line 82

<?php
function webform_dynamic_delete_rule($ruleid) {
  // delete rule
  db_delete('webform_validation_rule')
  ->condition('ruleid', $ruleid)
  ->execute();
  // delete rule components
  db_delete('webform_validation_rule_components')
  ->condition('ruleid', $ruleid)
  ->execute();
}
?>