You are here

function accountmenu_uninstall in Account menu 7

Same name and namespace in other branches
  1. 6 accountmenu.install \accountmenu_uninstall()

Implements hook_uninstall.

File

./accountmenu.install, line 28
accountmenu.install accountmenu module install/uninstall

Code

function accountmenu_uninstall() {
  variable_del('accountmenu_menu_name');
  include_once 'accountmenu.module';
  _accountmenu_delete_menu();
  db_query("DELETE FROM {menu_custom} WHERE menu_name = 'accountmenu'");
  db_query("DELETE FROM {menu_links} WHERE link_path = 'user/self'");
}