You are here

function admin_menu_uninstall in Administration menu 8.3

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

Implements hook_uninstall().

File

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

Code

function admin_menu_uninstall() {
  $state = \Drupal::state();

  // Delete variables.
  $state
    ->delete('admin_menu_components');
  $state
    ->delete('admin_menu_margin_top');
  $state
    ->delete('admin_menu_position_fixed');
  $state
    ->delete('admin_menu_tweak_modules');
  $state
    ->delete('admin_menu_tweak_tabs');
  $state
    ->delete('admin_menu_show_all');
  $state
    ->delete('admin_menu_display');
  $state
    ->delete('admin_menu_cache_server');
  $state
    ->delete('admin_menu_cache_client');

  // Unused variables still should be deleted.
  $state
    ->delete('admin_menu_devel_modules');
  $state
    ->delete('admin_menu_devel_modules_enabled');
  $state
    ->delete('admin_menu_devel_modules_skip');
}