function template_preprocess_comment_folded
6.x comment.module | template_preprocess_comment_folded(&$variables) |
Process variables for comment-folded.tpl.php.
See also
File
- drupal-6.x/
modules/ comment/ comment.module, line 1714 - Enables users to comment on published content.
Code
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"));
}