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/node/node.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 0d7940a5e..038a0a175 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1241,7 +1241,7 @@ function node_show($node, $message = FALSE) { node_tag_new($node->nid); // For markup consistency with other pages, use node_build_multiple() rather than node_build(). - return node_build_multiple(array($node), 'full'); + return node_build_multiple(array($node->nid => $node), 'full'); } /** @@ -2034,6 +2034,7 @@ function node_feed($nids = FALSE, $channel = array()) { * An array in the format expected by drupal_render(). */ function node_build_multiple($nodes, $build_mode = 'teaser', $weight = 0) { + field_attach_prepare_view('node', $nodes, $build_mode); $build = array(); foreach ($nodes as $node) { $build['nodes'][$node->nid] = node_build($node, $build_mode); -- cgit v1.2.3