function locale_test_store_language_negotiation

7.x locale_test.module locale_test_store_language_negotiation()

Store the last negotiated languages.

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

File

drupal-7.x/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);
}