function locale_test_store_language_negotiation

Store the last negotiated languages.

1 call to locale_test_store_language_negotiation()
locale_test_init in modules/locale/tests/locale_test.module
Implements hook_init().

File

modules/locale/tests/locale_test.module, line 121

Code

function locale_test_store_language_negotiation() {
    $last = array();
    foreach (language_types() as $type) {
        $last[$type] = $GLOBALS[$type]->language;
    }
    variable_set('locale_test_language_negotiation_last', $last);
}

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