From 27e01ade236fe2d65d9e7176d0c217b71963b5f5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 4 Jan 2009 16:19:39 +0000 Subject: - Patch #350984 by Moshe: clean-up and bugfix of the 'kick comment rendering out of node module'. --- modules/comment/comment.module | 2 +- modules/node/node.api.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 44f648ca3..04ddc9d2d 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -495,7 +495,7 @@ function comment_nodeapi_view($node, $teaser) { ); // Append the list of comments to $node->content for node detail pages. - if ($node->comment && (bool)menu_get_object()) { + if ($node->comment && (bool)menu_get_object() && $node->build_mode != NODE_BUILD_PREVIEW) { $node->content['comments'] = array( '#markup' => comment_render($node), ); diff --git a/modules/node/node.api.php b/modules/node/node.api.php index e6a406a04..b90e65d10 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -366,7 +366,7 @@ function hook_nodeapi_update_index($node) { } /** - * The user has finished editing the node and is trying to preview or submit it. + * The user has finished editing the node and is previewing or submitting it. * * This hook can be used to check the node data. Errors should be set with * form_set_error(). -- cgit v1.2.3