1 field_test.module field_test_field_language_alter(&$display_language, $context)

Implements hook_field_language_alter().

File

core/modules/field/tests/field_test/field_test.module, line 117
Helper module for the Field API tests.

Code

function field_test_field_language_alter(&$display_language, $context) {
  if (state_get('field_test_language_fallback', TRUE)) {
    locale_field_language_fallback($display_language, $context['entity'], $context['language']);
  }
}