You are here

function locale_test_store_language_negotiation in Drupal 7

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
Mock module for locale layer tests.

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);
}