1 field_test.module | field_test_field_attach_view_alter(&$output, $context) |
Implements hook_field_attach_view_alter().
File
- core/
modules/ field/ tests/ field_test/ field_test.module, line 208 - Helper module for the Field API tests.
Code
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');
}
}