You are here

function advanced_forum_handler_field_node_topic_pager::render in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.2 includes/views/advanced_forum_handler_field_node_topic_pager.inc \advanced_forum_handler_field_node_topic_pager::render()

File

includes/views/advanced_forum_handler_field_node_topic_pager.inc, line 38
Field handler to display the topic pager.

Class

advanced_forum_handler_field_node_topic_pager
@file Field handler to display the topic pager.

Code

function render($values) {

  // Make a fake topic object with the information that the core one has.
  $topic = new stdClass();
  $topic->nid = $values->nid;
  $topic->type = $values->node_type;
  $topic->num_comments = $values->node_comment_statistics_comment_count;
  return theme('advanced_forum_topic_pager', $this->options['total_pages_shown'], $topic);
}