You are here

function rules_item_rule_set_delete in Rules 6

Item type callback: Deleted rule set

File

rules_admin/rules_admin.sets.inc, line 100

Code

function rules_item_rule_set_delete($set_name) {

  // Delete all rules belonging to this set too
  $rules = rules_get_configured_items('rules');
  foreach ($rules as $name => $rule) {
    if ($rule['#set'] == $set_name) {
      rules_item_delete('rules', $name);
    }
  }
}