Same name and namespace in other branches
- 4.7.x modules/comment.module \theme_comment_view()
- 5.x modules/comment/comment.module \theme_comment_view()
- 6.x modules/comment/comment.module \theme_comment_view()
8 theme calls to theme_comment_view()
- comment_preview in modules/
comment.module - comment_render in modules/
comment.module - comment_reply in modules/
comment.module - theme_comment_flat_collapsed in modules/
comment.module - theme_comment_flat_expanded in modules/
comment.module
File
- modules/
comment.module, line 1442 - Enables users to comment on published content.
Code
function theme_comment_view($comment, $links = '', $visible = 1) {
// Emit selectors:
$output = '';
if (($comment->new = node_mark($comment->nid, $comment->timestamp)) != MARK_READ) {
$output .= "<a id=\"new\"></a>\n";
}
$output .= "<a id=\"comment-{$comment->cid}\"></a>\n";
// Switch to folded/unfolded view of the comment
if ($visible) {
$comment->comment = check_output($comment->comment, $comment->format);
$output .= theme('comment', $comment, $links);
}
else {
$output .= theme('comment_folded', $comment);
}
return $output;
}