From 600681db7ea567a4bf140d929c8208c06c78c393 Mon, 21 Nov 2011 13:04:15 +0100 From: Bram Goffings Date: Mon, 21 Nov 2011 13:03:57 +0100 Subject: [PATCH] crud fix diff --git a/core/modules/comment/comment.entity.inc b/core/modules/comment/comment.entity.inc index 469bf86..dc5718b 100644 --- a/core/modules/comment/comment.entity.inc +++ b/core/modules/comment/comment.entity.inc @@ -194,7 +194,7 @@ protected function postSave(EntityInterface $comment) { // Update the {node_comment_statistics} table prior to executing the hook. $this->updateNodeStatistics($comment->nid); - // Care about hook_comment_publish(), + // Invoke hook_comment_publish(). if ($comment->status == COMMENT_PUBLISHED) { module_invoke_all('comment_publish', $comment); } diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 518cdfe..699c957 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -740,8 +740,7 @@ // Append comment form if needed. if (user_access('post comments') && $node->comment == COMMENT_NODE_OPEN && (variable_get('comment_form_location_' . $node->type, COMMENT_FORM_BELOW) == COMMENT_FORM_BELOW)) { $comment = entity_create('comment', array('nid' => $node->nid)); - $build = drupal_get_form("comment_node_{$node->type}_form", $comment); - $additions['comment_form'] = $build; + $additions['comment_form'] = drupal_get_form("comment_node_{$node->type}_form", $comment); } if ($additions) {