You are here

function language_selection_page_uninstall in Language Selection Page 6

Same name and namespace in other branches
  1. 8.2 language_selection_page.install \language_selection_page_uninstall()
  2. 7.2 language_selection_page.install \language_selection_page_uninstall()
  3. 7 language_selection_page.install \language_selection_page_uninstall()

Implementation of hook_uninstall().

File

./language_selection_page.install, line 73
The install page.

Code

function language_selection_page_uninstall() {
  variable_del('language_selection_page_use_language_cookie');
  variable_del('language_selection_page_enable');
  variable_del('language_selection_page_redirect_type');
  variable_del('language_selection_page_blacklisted_paths');
  variable_del('language_selection_page_cookie_lifetime');
  setcookie(LANGUAGE_SELECTION_PAGE_LANGUAGE_COOKIE_KEY, NULL, 0, '/');
  drupal_set_message(t('The Language Selection Page variables and cookie has been removed successfully.'));
}