You are here

function locale_test_language_negotiation_info_alter in Drupal 7

Implements hook_language_negotiation_info_alter().

1 string reference to 'locale_test_language_negotiation_info_alter'
LocaleLanguageNegotiationInfoFunctionalTest::testInfoAlterations in modules/locale/locale.test
Tests alterations to language types/negotiation info.

File

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

Code

function locale_test_language_negotiation_info_alter(array &$language_providers) {
  if (variable_get('locale_test_language_negotiation_info_alter', FALSE)) {
    unset($language_providers[LOCALE_LANGUAGE_NEGOTIATION_INTERFACE]);
  }
}