function menu_position_delete_rule in Menu Position 7
Same name and namespace in other branches
- 6 menu_position.admin.inc \menu_position_delete_rule()
- 7.2 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 711 - 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);
cache_clear_all('menu_position:rules:', 'cache', TRUE);
}