1 locale_test.module locale_test_boot()

Implements hook_boot().

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

File

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

Code

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