You are here

function menu_position_delete_rule in Menu Position 6

Same name and namespace in other branches
  1. 7.2 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 593
Provides infrequently used functions and hooks for menu_position.

Code

function menu_position_delete_rule($rid) {
  db_query('DELETE FROM {menu_position_rules} WHERE rid = %d', $rid);
  menu_link_delete(NULL, 'menu-position/' . $rid);
}