summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index ea79ea521..31738a566 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2334,6 +2334,8 @@ function template_preprocess_comment_wrapper(&$variables) {
// Provide contextual information.
$variables['node'] = $variables['content']['#node'];
$variables['display_mode'] = variable_get('comment_default_mode_' . $variables['node']->type, COMMENT_MODE_THREADED);
+ // The comment form is optional and may not exist.
+ $variables['content'] += array('comment_form' => array());
}
/**