Skip navigation
Help

hook_language_negotiation_info_alter

7 locale.api.php hook_language_negotiation_info_alter(array &$language_providers)

Perform alterations on language providers.

Parameters

$language_providers: Array of language provider definitions.

Related topics

1 function implements hook_language_negotiation_info_alter()

1 invocation of hook_language_negotiation_info_alter()

File

drupal/modules/locale/locale.api.php, line 164
Hooks provided by the Locale module.

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';
  }
}