You are here

function language_selection_page_boot in Language Selection Page 7

Same name and namespace in other branches
  1. 7.2 language_selection_page.module \language_selection_page_boot()

Implements hook_boot().

Prevents redirect by globalredirect. Putting this in hook_boot so that it executes before globalredirect_init().

See https://drupal.org/node/1438584#comment-6167916

File

./language_selection_page.module, line 44

Code

function language_selection_page_boot() {
  $path = request_path();
  if ($path == 'language_selection') {
    $_POST['globalredirect'] = 'Disabled on language selection page.';
  }
}