From 087a47ba5c8cdf5b0f79d9a121b7b9dcbbe7e992 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 16 Oct 2009 03:21:23 +0000 Subject: #493314 by yched and catch: Add multiple hook for formatters. --- modules/field/field.attach.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/field/field.attach.inc') diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc index 2bf38e457..3630ea40d 100644 --- a/modules/field/field.attach.inc +++ b/modules/field/field.attach.inc @@ -1109,6 +1109,13 @@ function field_attach_query_revisions($field_id, $conditions, $count, &$cursor = return field_attach_query($field_id, $conditions, $count, $cursor, FIELD_LOAD_REVISION); } +/** + * Allow formatters to act on fieldable objects prior to rendering. + */ +function field_attach_prepare_view($obj_type, $objects, $build_mode = 'full') { + _field_invoke_multiple_default('prepare_view', $obj_type, $objects, $build_mode); +} + /** * Generate and return a structured content array tree suitable for * drupal_render() for all of the fields on an object. The format of -- cgit v1.2.3