diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-31 12:02:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-31 12:02:24 +0000 |
commit | 5ba50b3fe83b1724b6cec12ded62663167a08e14 (patch) | |
tree | 20948b0d3e841b7a41ec7d5e511d70d278e24190 /includes | |
parent | d813e3679c57da312cc0de61da90ff2c2eff70a6 (diff) | |
download | brdo-5ba50b3fe83b1724b6cec12ded62663167a08e14.tar.gz brdo-5ba50b3fe83b1724b6cec12ded62663167a08e14.tar.bz2 |
- Patch #350984 by Moshe: kick comment rendering out of node module.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 4 |
1 files changed, 4 insertions, 0 deletions
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'])) { |