You are here

function template_preprocess_comment_folded in Drupal 6

Process variables for comment-folded.tpl.php.

See also

comment-folded.tpl.php

theme_comment_folded()

File

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}",
  ));
}