You are here

function advanced_forum_page_first_new in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.2 advanced_forum.module \advanced_forum_page_first_new()

Get the page number with the first new post. This is simply a wrapper to either call the comment module version or the nodecomment module version.

2 calls to advanced_forum_page_first_new()
advanced_forum_first_new_post_link in ./advanced_forum.module
Returns a link directly to the first new post in a topic.
advanced_forum_preprocess_forum_submitted in includes/theme.inc
Preprocesses template variables for the submitted by/in template.

File

./advanced_forum.module, line 923
Enables the look and feel of other popular forum software.

Code

function advanced_forum_page_first_new($num_comments, $new_replies, $node) {
  $comment_type = module_invoke('nodecomment', 'get_comment_type', $node->type);
  if (isset($comment_type)) {
    return nodecomment_new_page_count($num_comments, $new_replies, $node);
  }
  else {
    return comment_new_page_count($num_comments, $new_replies, $node);
  }
}