summaryrefslogtreecommitdiff
path: root/modules/field/field.attach.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/field/field.attach.inc')
-rw-r--r--modules/field/field.attach.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc
index e0c745976..48eab2dec 100644
--- a/modules/field/field.attach.inc
+++ b/modules/field/field.attach.inc
@@ -1114,6 +1114,11 @@ function field_attach_query_revisions($field_id, $conditions, $options = array()
* Allow formatters to act on fieldable objects prior to rendering.
*/
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);
}