function hook_language_negotiation_info_alter

7.x language.api.php hook_language_negotiation_info_alter(array &$language_providers)

Perform alterations on language negoiation providers.

Parameters

$language_providers: Array of language negotiation provider definitions.

See also

hook_language_negotiation_info()

Related topics

1 function implements hook_language_negotiation_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

locale_test_language_negotiation_info_alter in drupal/modules/locale/tests/locale_test.module
Implements hook_language_negotiation_info_alter().
1 invocation of hook_language_negotiation_info_alter()
language_negotiation_info in drupal/includes/language.inc
Returns all the defined language negotiation providers.

File

drupal/modules/system/language.api.php, line 167
Hooks provided by the base system for language support.

Code

function hook_language_negotiation_info_alter(array &$language_providers) {
  if (isset($language_providers['custom_language_provider'])) {
    $language_providers['custom_language_provider']['config'] = 'admin/config/regional/language/configure/custom-language-provider';
  }
}