Skip navigation
Help

hook_language_fallback_candidates_alter

7 locale.api.php hook_language_fallback_candidates_alter(array &$fallback_candidates)

Perform alterations on the language fallback candidates.

Parameters

$fallback_candidates: An array of language codes whose order will determine the language fallback order.

Related topics

1 invocation of hook_language_fallback_candidates_alter()

File

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

Code

function hook_language_fallback_candidates_alter(array &$fallback_candidates) {
  $fallback_candidates = array_reverse($fallback_candidates);
}