You are here

function locale_test_boot in Drupal 7

Implements hook_boot().

For testing domain language negotiation, we fake it by setting the HTTP_HOST here

File

modules/locale/tests/locale_test.module, line 24
Mock module for locale layer tests.

Code

function locale_test_boot() {
  if (variable_get('locale_test_domain')) {
    $_SERVER['HTTP_HOST'] = variable_get('locale_test_domain');
  }
}