function locale_test_boot
7.x locale_test.module | locale_test_boot() |
Implements hook_boot().
For testing domain language negotiation, we fake it by setting the HTTP_HOST here
File
- drupal-7.x/
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');
}
}