You are here

function _accountmenu_delete_menu in Account menu 6

Same name and namespace in other branches
  1. 7 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 68
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'");
  while ($link = db_fetch_array($result)) {
    _menu_delete_item($link);
  }
}