summaryrefslogtreecommitdiff
path: root/modules/field/tests/field_test.module
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-03-29 17:47:44 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-03-29 17:47:44 -0400
commit9ddfc4697d91b75823bad166666e27f433517b80 (patch)
tree2fb1be11aa60745cc47bbe726c56033ac1d6f6a8 /modules/field/tests/field_test.module
parentac0f69f1dab60057909a8091a522afbdc7c86910 (diff)
downloadbrdo-9ddfc4697d91b75823bad166666e27f433517b80.tar.gz
brdo-9ddfc4697d91b75823bad166666e27f433517b80.tar.bz2
Issue #1823306 by mkalkbrenner, p-neyens, webflo, swentel, zuuperman: Language code is missing from $context when hook_field_attach_view_alter() is invoked from field_view_field()
Diffstat (limited to 'modules/field/tests/field_test.module')
-rw-r--r--modules/field/tests/field_test.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/field/tests/field_test.module b/modules/field/tests/field_test.module
index 9daa2c305..7e9bba0d8 100644
--- a/modules/field/tests/field_test.module
+++ b/modules/field/tests/field_test.module
@@ -220,6 +220,10 @@ function field_test_field_attach_view_alter(&$output, $context) {
if (!empty($context['display']['settings']['alter'])) {
$output['test_field'][] = array('#markup' => 'field_test_field_attach_view_alter');
}
+
+ if (isset($output['test_field'])) {
+ $output['test_field'][] = array('#markup' => 'field language is ' . $context['language']);
+ }
}
/**