You are here

function menu_position_delete_rule in Menu Position 7.2

Same name and namespace in other branches
  1. 6 menu_position.admin.inc \menu_position_delete_rule()
  2. 7 menu_position.admin.inc \menu_position_delete_rule()

Deletes a menu position rule.

1 call to menu_position_delete_rule()
menu_position_delete_rule_form_submit in ./menu_position.admin.inc
Handles form submission for menu_position_delete_rule_form().

File

./menu_position.admin.inc, line 644
Provides infrequently used functions and hooks for menu_position.

Code

function menu_position_delete_rule($rid) {
  db_delete('menu_position_rules')
    ->condition('rid', $rid)
    ->execute();
  menu_link_delete(NULL, 'menu-position/' . $rid);
}