function rules_admin_rule_proxy::delete_rule in Rules 6
Deletes the rule configuration from the database
File
- rules_admin/
rules_admin.rule_proxy.inc, line 163 - Contains the rules proxy class
Class
- rules_admin_rule_proxy
- This is a smally proxy for the real rule. It provides some useful operations for the admin UI. It builds a small index for the elements of a rule, so that they can be easily identified and modified.
Code
function delete_rule() {
$rule = $this
->get_rule();
rules_item_delete('rules', $this
->get_rule_name(), $rule);
}