You are here

taxonomy_menu.install in Taxonomy menu 5

taxonomy_menu.install Install and uninstall all required databases. Also do incremental database updates.

File

taxonomy_menu.install
View source
<?php

/**
 * @file taxonomy_menu.install
 * Install and uninstall all required databases.
 * Also do incremental database updates.
 */

/**
 * Delete all SQL tables and global variables
 * used by this module in other to let no garbage
 * behind
 */
function taxonomy_menu_uninstall() {

  // Delete variables
  foreach (taxonomy_get_vocabularies() as $vocabulary) {
    variable_del('taxonomy_menu_show_' . $vocabulary->vid);
    variable_del('taxonomy_menu_show_view_' . $vocabulary->vid);
  }
  variable_del('taxonomy_menu_display_num');
  variable_del('taxonomy_menu_hide_empty');
  variable_del('taxonomy_menu_display_page');
  variable_del('taxonomy_menu_display_descendants');
}

Functions

Namesort descending Description
taxonomy_menu_uninstall Delete all SQL tables and global variables used by this module in other to let no garbage behind