You are here

function rules_item_delete in Rules 6

Deletes the given item from the database

6 calls to rules_item_delete()
rules_admin_item_form_delete_submit in rules_admin/rules_admin.sets.inc
rules_admin_item_form_revert_submit in rules_admin/rules_admin.sets.inc
rules_admin_rule_proxy::delete_rule in rules_admin/rules_admin.rule_proxy.inc
Deletes the rule configuration from the database
rules_admin_update_6001 in rules_admin/rules_admin.install
Update 6001 Example rules are now added by hook_install() instead of using default rules.
rules_categories_features_revert in rules/rules.export.inc
Implementation of hook_features_revert() for rule categories.

... See full list

File

rules/rules.module, line 836
Rules engine module

Code

function rules_item_delete($item_type, $name) {
  if ($info = rules_get_items($item_type)) {
    rules_item_type_invoke($item_type, 'delete', array(
      $name,
    ));
    db_query("DELETE FROM {" . $info['db_table'] . "} WHERE name = '%s'", $name);
  }
}