function locale_test_boot

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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.