8.5.x language.api.php hook_language_fallback_candidates_alter(array &$candidates, array $context)
8.0.x language.api.php hook_language_fallback_candidates_alter(array &$candidates, array $context)
8.1.x language.api.php hook_language_fallback_candidates_alter(array &$candidates, array $context)
8.2.x language.api.php hook_language_fallback_candidates_alter(array &$candidates, array $context)
8.3.x language.api.php hook_language_fallback_candidates_alter(array &$candidates, array $context)
8.4.x language.api.php hook_language_fallback_candidates_alter(array &$candidates, array $context)
8.6.x language.api.php hook_language_fallback_candidates_alter(array &$candidates, array $context)
7.x language.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()
language_fallback_get_candidates in includes/language.inc
Returns the possible fallback languages ordered by language weight.

File

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

Code

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