hook_field_attach_view_alter

Versions
7
hook_field_attach_view_alter(&$output, $context)

Act on field_attach_view.

This hook is invoked after the field module has performed the operation.

Parameters

&$output The structured content array tree for all of $object's fields.

$context An associative array containing:

  • obj_type: The type of $object; e.g. 'node' or 'user'.
  • object: The object with fields to render.
  • build_mode: Build mode, e.g. 'full', 'teaser'...
  • langcode: The language in which the field values will be displayed.

Related topics

Code

modules/field/field.api.php, line 1049

<?php
function hook_field_attach_view_alter(&$output, $context) {
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.