diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 70789b794..52549f974 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -939,7 +939,8 @@ function comment_view($comment, $node, $view_mode = 'full', $langcode = NULL) { } // Allow modules to modify the structured comment. - drupal_alter('comment_view', $build); + $type = 'comment'; + drupal_alter(array('comment_view', 'entity_view'), $build, $type); return $build; } @@ -983,6 +984,7 @@ function comment_build_content($comment, $node, $view_mode = 'full', $langcode = // Allow modules to make their own additions to the comment. module_invoke_all('comment_view', $comment, $view_mode, $langcode); + module_invoke_all('entity_view', $comment, 'comment', $view_mode, $langcode); } /** |