phptemplate_comment

5 phptemplate.engine phptemplate_comment($comment, $links = 0)

Prepare the values passed to the theme_comment function to be passed into a pluggable template engine.

File

themes/engines/phptemplate/phptemplate.engine, line 319
Handles integration of templates written in pure php with the Drupal theme system.

Code

function phptemplate_comment($comment, $links = 0) {
  return _phptemplate_callback('comment', array(
    'author' => theme('username', $comment), 
    'comment' => $comment, 
    'content' => $comment->comment, 
    'date' => format_date($comment->timestamp), 
    'links' => isset($links) ? theme('links', $links) : '', 
    'new' => $comment->new ? t('new') : '', 
    'picture' => theme_get_setting('toggle_comment_user_picture') ? theme('user_picture', $comment) : '', 
    'submitted' => t('Submitted by !a on @b.', 
                      array(
      '!a' => theme('username', $comment), 
      '@b' => format_date($comment->timestamp),
    )), 
    'title' => l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid"),
  ));
}
Login or register to post comments