You are here

function theme_talkpage in Talk 5

Theme talkpage for node

Parameters

$node: node whose talk page is displayed

$add_comments: boolean which indicates if the adding of comments is allowed for current user

1 theme call to theme_talkpage()
talk_handle in ./talk.module
Menu callback for talk page.

File

./talk.module, line 186
Comments are displayed in a separate 'talk' tab, for node types you wish Made for Drupal 5.x

Code

function theme_talkpage($node, $add_comments) {
  $output = '';
  $output .= comment_render($node);
  if ($node->comment_count && $add_comments) {
    $output .= '<p>' . l(t('Add new comment'), "comment/reply/{$node->nid}") . '</p>';
  }
  return $output;
}