function locale_field_language_alter

locale_field_language_alter(&$display_language, $context)

Implements hook_field_language_alter().

File

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

Code

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 (variable_get('locale_field_language_fallback', TRUE) && field_has_translation_handler($context['entity_type'], 'locale')) {
    locale_field_language_fallback($display_language, $context['entity'], $context['language']);
  }
}

© 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!locale!locale.module/function/locale_field_language_alter/7.x