template_preprocess_comment_folded

Definition

template_preprocess_comment_folded(&$variables)
modules/comment/comment.module, line 1706

Description

Process variables for comment-folded.tpl.php.

See also

comment-folded.tpl.php

@see theme_comment_folded()

Code

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.