summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 07:24:22 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 07:24:22 +0000
commit04cbffccc798fc2c0ff5b805d48ff57c6e6a5968 (patch)
tree62a5835fc497f1dc4c1b96adefba100e0eba9b91
parent2310bd97233228962fc833a986967de1b35acbb5 (diff)
downloadbrdo-04cbffccc798fc2c0ff5b805d48ff57c6e6a5968.tar.gz
brdo-04cbffccc798fc2c0ff5b805d48ff57c6e6a5968.tar.bz2
#78675 by pwolanin. Fix calling order for node links. Seen in book read more links.
-rw-r--r--modules/node/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 81deae232..bc76dacc7 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);