field_attach_prepare_view
- Versions
- 7
field_attach_prepare_view($obj_type, $objects, $build_mode = 'full')
Allow formatters to act on fieldable objects prior to rendering.
Related topics
Code
modules/field/field.attach.inc, line 1115
<?php
function field_attach_prepare_view($obj_type, $objects, $build_mode = 'full') {
// First let the field types do their preparation.
_field_invoke_multiple('prepare_view', $obj_type, $objects);
// Then let the formatters do their own specific massaging.
// field_default_prepare_view() takes care of dispatching to the correct
// formatters according to the display settings for the build mode.
_field_invoke_multiple_default('prepare_view', $obj_type, $objects, $build_mode);
}
?>Login or register to post comments 