From 5ba50b3fe83b1724b6cec12ded62663167a08e14 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 31 Dec 2008 12:02:24 +0000 Subject: - Patch #350984 by Moshe: kick comment rendering out of node module. --- includes/theme.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 011872842..e23d58cf4 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1983,6 +1983,7 @@ function template_preprocess_node(&$variables) { $variables['name'] = theme('username', $node); $variables['node_url'] = url('node/' . $node->nid); $variables['title'] = check_plain($node->title); + $variables['page'] = (bool)menu_get_object(); if ($node->build_mode == NODE_BUILD_PREVIEW) { unset($node->content['links']); @@ -1993,6 +1994,9 @@ function template_preprocess_node(&$variables) { // Render all remaining node links. $variables['links'] = !empty($node->content['links']) ? drupal_render($node->content['links']) : ''; + + // Render any comments. + $variables['comments'] = !empty($node->content['comments']) ? drupal_render($node->content['comments']) : ''; // Render the rest of the node into $content. if (!empty($node->content['teaser'])) { -- cgit v1.2.3