1 locale.module locale_field_language_alter(&$display_language, $context)

Implements hook_field_language_alter().


core/modules/locale/locale.module, line 271
Add language handling functionality and enables the translation of the user interface to languages other than English.


function locale_field_language_alter(&$display_language, $context) {
  // Do not apply core language fallback rules if they are disabled or if Locale
  // is not registered as a translation handler.
  if (config_get('locale.settings', 'field_language_fallback') && field_has_translation_handler($context['entity_type'], 'locale')) {
    locale_field_language_fallback($display_language, $context['entity'], $context['language']);