diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-16 03:21:23 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-16 03:21:23 +0000 |
commit | 087a47ba5c8cdf5b0f79d9a121b7b9dcbbe7e992 (patch) | |
tree | b223ccb070c29008ef9098484bb44894c2f53410 /modules/comment/comment.module | |
parent | 13d3072f418835569f37f65b5055e5b3180fad2e (diff) | |
download | brdo-087a47ba5c8cdf5b0f79d9a121b7b9dcbbe7e992.tar.gz brdo-087a47ba5c8cdf5b0f79d9a121b7b9dcbbe7e992.tar.bz2 |
#493314 by yched and catch: Add multiple hook for formatters.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 87ef24c0a..db36e0a7a 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -844,6 +844,7 @@ function comment_build_content($comment, $node, $build_mode = 'full') { '#markup' => check_markup($comment->comment, $comment->format, '', TRUE), ); + field_attach_prepare_view('comment', array($comment->cid => $comment), $build_mode); $comment->content += field_attach_view('comment', $comment, $build_mode); if (empty($comment->in_preview)) { @@ -937,6 +938,8 @@ function comment_links($comment, $node) { * An array in the format expected by drupal_render(). */ function comment_build_multiple($comments, $node, $build_mode = 'full', $weight = 0) { + field_attach_prepare_view('comment', $comments, $build_mode); + $build = array( '#sorted' => TRUE, ); |