Perform alterations on field_language() values.
This hook is invoked to alter the array of display language codes for the given entity.
$display_langcode: A reference to an array of language codes keyed by field name.
$context: An associative array containing:
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_field_language_alter(&$display_langcode, $context) {
// Do not apply core language fallback rules if they are disabled or if Locale
// is not registered as a translation handler.
if (field_language_fallback_enabled() && field_has_translation_handler($context['entity']
->entityType())) {
field_language_fallback($display_langcode, $context['entity'], $context['langcode']);
}
}