You are here

function site_map_uninstall in Site map 5

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

Implementation of hook_uninstall().

File

./site_map.install, line 6

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');
  if (function_exists('locale')) {
    $langs = locale_supported_languages();
    foreach ($langs['name'] as $lang_code => $lang_name) {
      variable_del("site_map_message_{$lang_code}");
    }
  }
}