function locale_test_language_negotiation_info_alter

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.