From 04cbffccc798fc2c0ff5b805d48ff57c6e6a5968 Mon Sep 17 00:00:00 2001 From: Neil Drumm <drumm@3064.no-reply.drupal.org> Date: Thu, 7 Sep 2006 07:24:22 +0000 Subject: [PATCH] #78675 by pwolanin. Fix calling order for node links. Seen in book read more links. --- modules/node/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/node/node.module b/modules/node/node.module index 81deae232127..bc76dacc7ab8 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -635,6 +635,8 @@ function node_save(&$node) { function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) { $node = (object)$node; + $node = node_build_content($node, $teaser, $page); + if ($links) { $node->links = module_invoke_all('link', 'node', $node, !$page); @@ -644,8 +646,6 @@ function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) { } } - $node = node_build_content($node, $teaser, $page); - // Set the proper node part, then unset unused $node part so that a bad // theme can not open a security hole. $content = drupal_render($node->content); -- GitLab