You are here

function theme_discussthis_comment in Discuss This! 5

1 theme call to theme_discussthis_comment()
discussthis_nodeapi in ./discussthis.module
hook_nodeapi implementation This is the meat of the module. Here we add the Discuss This link which will create a new forum topic if none exists, or link to the existing one if it does. Also adds forum override dropdown on add/edit screen for users…

File

./discussthis.module, line 607

Code

function theme_discussthis_comment($topic_nid, $comment) {
  $output = "<div class=\"discussthis-comment\">\n";
  $output .= ' <span class="subject">' . l($comment->subject, 'node/' . $topic_nid, null, null, "comment-{$comment->cid}") . '</span> ';
  $output .= '<span class="credit">' . t('by') . ' ' . theme('username', $comment) . "</span>\n";
  $output .= "</div>\n";
  return $output;
}