summaryrefslogtreecommitdiff
path: root/modules/comment/comment.pages.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-31 19:44:21 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-31 19:44:21 +0000
commita8a15bcd9015914d5350d868760f8d750b80354e (patch)
treec7bbfa7576430403282b0b9dc7ef20d06e218d61 /modules/comment/comment.pages.inc
parent04d7eb4acb8b892e489a3abe49c9a98e5d863f7e (diff)
downloadbrdo-a8a15bcd9015914d5350d868760f8d750b80354e.tar.gz
brdo-a8a15bcd9015914d5350d868760f8d750b80354e.tar.bz2
- Patch #504666 by catch, yched, et al: make comments fieldable. Oh my. Bye bye comments as nodes?
Diffstat (limited to 'modules/comment/comment.pages.inc')
-rw-r--r--modules/comment/comment.pages.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/comment/comment.pages.inc b/modules/comment/comment.pages.inc
index dc18f8035..e575460cf 100644
--- a/modules/comment/comment.pages.inc
+++ b/modules/comment/comment.pages.inc
@@ -73,6 +73,8 @@ function comment_reply($node, $pid = NULL) {
}
// Display the parent comment
$comment = drupal_unpack($comment);
+ $comment->node_type = 'comment_node_' . $node->type;
+ field_attach_load('comment', array($comment->cid => $comment));
$comment->name = $comment->uid ? $comment->registered_name : $comment->name;
$build['comment_parent'] = comment_build($comment);
}