function field_test_field_language_alter in Drupal 7
Implements hook_field_language_alter().
File
- modules/
field/ tests/ field_test.module, line 117
Code
function field_test_field_language_alter(&$display_language, $context) {
if (variable_get('field_test_language_fallback', TRUE)) {
locale_field_language_fallback($display_language, $context['entity'], $context['language']);
}
}