theme_comment_view
- Versions
- 4.6
theme_comment_view($comment, $links = '', $visible = 1)- 4.7 – 5
theme_comment_view($comment, $links = array(), $visible = 1)- 6
theme_comment_view($comment, $node, $links = array(), $visible = TRUE)
Code
modules/comment.module, line 1442
<?php
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;
}
?>Login or register to post comments 