You are here

function rules_link_rules_link_delete in Rules Link 7

Same name and namespace in other branches
  1. 7.2 rules_link.module \rules_link_rules_link_delete()

Implements hook_rules_link_delete().

File

./rules_link.module, line 271
Rules Link - module file.

Code

function rules_link_rules_link_delete($link) {

  // @see rules_link_rules_link_insert()
  variable_set('menu_rebuild_needed', TRUE);

  // Delete associate rule configs.
  rules_link_load_condition_set($link)
    ->delete();
  rules_link_load_rules_set($link)
    ->delete();
}