function field_test_field_attach_view_alter

7.x field_test.module field_test_field_attach_view_alter(&$output, $context)

Implements hook_field_attach_view_alter().

1 string reference to 'field_test_field_attach_view_alter'
FieldDisplayAPITestCase::testFieldViewField in drupal-7.x/modules/field/tests/field.test
Test the field_view_field() function.

File

drupal-7.x/modules/field/tests/field_test.module, line 219
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');
  }
}