function hook_language_negotiation_info_alter in Drupal 7
Same name and namespace in other branches
- 8 core/modules/language/language.api.php \hook_language_negotiation_info_alter()
- 9 core/modules/language/language.api.php \hook_language_negotiation_info_alter()
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 modules/
locale/ tests/ locale_test.module - Implements hook_language_negotiation_info_alter().
1 invocation of hook_language_negotiation_info_alter()
- language_negotiation_info in includes/
language.inc - Returns all the defined language negotiation providers.
File
- 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';
}
}