1 locale_test.module locale_test_store_language_negotiation()

Store the last negotiated languages.

File

core/modules/locale/tests/locale_test/locale_test.module, line 95
Mock module for locale layer tests.

Code

function locale_test_store_language_negotiation() {
  $last = array();
  require_once BACKDROP_ROOT . '/core/includes/language.inc';
  foreach (language_types_info() as $type_name => $type_info) {
    $last[$type_name] = $GLOBALS[$type_name]->langcode;
  }
  state_set('locale_test_language_negotiation_last', $last);
}