You are here

function admin_menu_uninstall in Administration menu 6.3

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 admin_menu.install \admin_menu_uninstall()
  5. 7.3 admin_menu.install \admin_menu_uninstall()

Implementation of hook_uninstall().

File

./admin_menu.install, line 33
Install, update, and uninstall functions for the admin menu module.

Code

function admin_menu_uninstall() {

  // Remove cache table.
  drupal_uninstall_schema('admin_menu');

  // Delete the custom 'admin_menu' menu.
  db_query("DELETE FROM {menu_custom} WHERE menu_name = 'admin_menu'");

  // Delete all altered administration links.
  // These will be automatically rebuilt after uninstallation is complete.
  db_query("DELETE FROM {menu_links} WHERE menu_name = 'admin_menu' OR module = 'admin_menu'");

  // Delete variables.
  variable_del('admin_menu_devel_modules');
  variable_del('admin_menu_devel_modules_enabled');
  variable_del('admin_menu_devel_modules_skip');
  variable_del('admin_menu_margin_top');
  variable_del('admin_menu_position_fixed');
  variable_del('admin_menu_tweak_modules');
  variable_del('admin_menu_tweak_tabs');
  variable_del('admin_menu_show_all');
  variable_del('admin_menu_display');
  variable_del('admin_menu_cache_server');
  variable_del('admin_menu_cache_client');
}