function hook_language_fallback_candidates_alter
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
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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!language.api.php/function/hook_language_fallback_candidates_alter/7.x