diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-16 03:21:23 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-16 03:21:23 +0000 |
commit | 087a47ba5c8cdf5b0f79d9a121b7b9dcbbe7e992 (patch) | |
tree | b223ccb070c29008ef9098484bb44894c2f53410 /modules/field/field.attach.inc | |
parent | 13d3072f418835569f37f65b5055e5b3180fad2e (diff) | |
download | brdo-087a47ba5c8cdf5b0f79d9a121b7b9dcbbe7e992.tar.gz brdo-087a47ba5c8cdf5b0f79d9a121b7b9dcbbe7e992.tar.bz2 |
#493314 by yched and catch: Add multiple hook for formatters.
Diffstat (limited to 'modules/field/field.attach.inc')
-rw-r--r-- | modules/field/field.attach.inc | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -1110,6 +1110,13 @@ function field_attach_query_revisions($field_id, $conditions, $count, &$cursor = } /** + * 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 * each field's rendered content depends on the display formatter and |