You are here

function admin_menu_uninstall in Administration menu 6

Same name and namespace in other branches
  1. 8.3 admin_menu.install \admin_menu_uninstall()
  2. 5.3 admin_menu.install \admin_menu_uninstall()
  3. 5.2 admin_menu.install \admin_menu_uninstall()
  4. 6.3 admin_menu.install \admin_menu_uninstall()
  5. 7.3 admin_menu.install \admin_menu_uninstall()

Implementation of hook_uninstall().

File

./admin_menu.install, line 6

Code

function admin_menu_uninstall() {

  // Delete menu links.
  db_query("DELETE FROM {menu_links} WHERE module = 'admin_menu'");
  menu_cache_clear_all();

  // Delete variables.
  variable_del('admin_menu_devel_modules_enabled');
  variable_del('admin_menu_margin_top');
  variable_del('admin_menu_position_fixed');
  variable_del('admin_menu_rebuild_links');
  variable_del('admin_menu_tweak_modules');
  variable_del('admin_menu_tweak_tabs');
}