diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-18 00:07:38 -0500 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-18 00:07:38 -0500 |
commit | 75a0deb2722bde4fc7d60d02f186809fbc77320d (patch) | |
tree | 32f7f65f2a30a4970550f93e45f79c2b4c3bd589 /modules/comment | |
parent | 8c3dbb5e7f0a997662350ca44efa271514e83047 (diff) | |
download | brdo-75a0deb2722bde4fc7d60d02f186809fbc77320d.tar.gz brdo-75a0deb2722bde4fc7d60d02f186809fbc77320d.tar.bz2 |
Issue #1089174 by plach: Fixed Prepare view hooks do not receive the language parameter.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 836f2fed8..499adc847 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -986,8 +986,8 @@ function comment_build_content($comment, $node, $view_mode = 'full', $langcode = $comment->content = array(); // Build fields content. - field_attach_prepare_view('comment', array($comment->cid => $comment), $view_mode); - entity_prepare_view('comment', array($comment->cid => $comment)); + field_attach_prepare_view('comment', array($comment->cid => $comment), $view_mode, $langcode); + entity_prepare_view('comment', array($comment->cid => $comment), $langcode); $comment->content += field_attach_view('comment', $comment, $view_mode, $langcode); $comment->content['links'] = array( @@ -1089,8 +1089,8 @@ function comment_links($comment, $node) { * An array in the format expected by drupal_render(). */ function comment_view_multiple($comments, $node, $view_mode = 'full', $weight = 0, $langcode = NULL) { - field_attach_prepare_view('comment', $comments, $view_mode); - entity_prepare_view('comment', $comments); + field_attach_prepare_view('comment', $comments, $view_mode, $langcode); + entity_prepare_view('comment', $comments, $langcode); $build = array( '#sorted' => TRUE, |