template_preprocess_comment_folded
- Versions
- 6
template_preprocess_comment_folded(&$variables)
Process variables for comment-folded.tpl.php.
See also
@see theme_comment_folded()
Code
modules/comment/comment.module, line 1710
<?php
function template_preprocess_comment_folded(&$variables) {
$comment = $variables['comment'];
$variables['author'] = theme('username', $comment);
$variables['date'] = format_date($comment->timestamp);
$variables['new'] = $comment->new ? t('new') : '';
$variables['title'] = l($comment->subject, comment_node_url() .'/'. $comment->cid, array('fragment' => "comment-$comment->cid"));
}
?>Login or register to post comments 