You are here

function site_map_uninstall in Site map 6

Same name and namespace in other branches
  1. 5 site_map.install \site_map_uninstall()
  2. 6.2 site_map.install \site_map_uninstall()
  3. 7 site_map.install \site_map_uninstall()

Implements hook_uninstall().

File

./site_map.install, line 12
Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se

Code

function site_map_uninstall() {
  variable_del('site_map_message');
  variable_del('site_map_show_front');
  variable_del('site_map_show_blogs');
  variable_del('site_map_show_books');
  variable_del('site_map_show_menus');
  variable_del('site_map_show_faq');
  variable_del('site_map_show_vocabularies');
  variable_del('site_map_books_expanded');
  variable_del('site_map_show_count');
  variable_del('site_map_categories_depth');
  variable_del('site_map_show_rss_links');
  variable_del('site_map_rss_depth');
  variable_del('site_map_css');
  variable_del('site_map_term_threshold');
  variable_del('site_map_forum_threshold');
  if (function_exists('locale')) {
    $langs = locale_language_list();
    foreach ($langs as $lang_code => $lang_name) {
      variable_del("site_map_message_{$lang_code}");
    }
  }
}