diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 2c093fc47..b8e9a2a64 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2120,6 +2120,10 @@ function template_preprocess_comment(&$variables) { $variables['signature'] = $comment->signature; $variables['title'] = l($comment->subject, 'comment/' . $comment->cid, array('fragment' => "comment-$comment->cid")); $variables['permalink'] = l('#', 'comment/' . $comment->cid, array('fragment' => "comment-$comment->cid")); + + // Preprocess fields. + field_attach_preprocess('comment', $comment, $variables['elements'], $variables); + $variables['template_files'][] = 'comment-' . $variables['node']->type; // Helpful $content variable for templates. |