You are here

function taxonomy_menu_uninstall in Taxonomy menu 8

Same name and namespace in other branches
  1. 5 taxonomy_menu.install \taxonomy_menu_uninstall()
  2. 6.3 taxonomy_menu.install \taxonomy_menu_uninstall()
  3. 6 taxonomy_menu.install \taxonomy_menu_uninstall()
  4. 6.2 taxonomy_menu.install \taxonomy_menu_uninstall()
  5. 7.2 taxonomy_menu.install \taxonomy_menu_uninstall()
  6. 7 taxonomy_menu.install \taxonomy_menu_uninstall()

Implements hook_uninstall().

File

./taxonomy_menu.install, line 13
Install and uninstall all required databases. Also do incremental database updates.

Code

function taxonomy_menu_uninstall() {

  // Remove menu items.
  db_delete('menu_links')
    ->condition('module', 'taxonomy_menu')
    ->execute();

  // Rebuild the menus.
  \Drupal::state()
    ->set('menu_rebuild_needed', TRUE);
}