You are here

function taxonomy_menu_uninstall in Taxonomy menu 6

Same name and namespace in other branches
  1. 8 taxonomy_menu.install \taxonomy_menu_uninstall()
  2. 5 taxonomy_menu.install \taxonomy_menu_uninstall()
  3. 6.3 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()

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

File

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

Code

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');
}