function _accountmenu_delete_menu in Account menu 7
Same name and namespace in other branches
- 6 accountmenu.module \_accountmenu_delete_menu()
Remove the menu links managed by accountmenu.
2 calls to _accountmenu_delete_menu()
- accountmenu_uninstall in ./
accountmenu.install - Implements hook_uninstall.
- _accountmenu_reset_menu in ./
accountmenu.module - Delete our links before making them again. we are really doing a move but there is no move api call so we delete first and re-create. !!! any menu customization made through the menu module UI are lost.
File
- ./
accountmenu.module, line 102 - accountmenu.module Provide a dynamic Log in/My account/Log out account menu
Code
function _accountmenu_delete_menu() {
$result = db_query("SELECT * FROM {menu_links} WHERE module = 'accountmenu'");
foreach ($result as $link) {
_menu_delete_item($link);
}
}