You are here

function locale_test_init in Drupal 7

Implements hook_init().

File

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

Code

function locale_test_init() {
  locale_test_store_language_negotiation();
  if (isset($GLOBALS['language']) && isset($GLOBALS['language']->provider)) {
    drupal_set_message(t('Language negotiation provider: @name', array(
      '@name' => $GLOBALS['language']->provider,
    )));
  }
}