public function advanced_forum_handler_field_node_topic_icon::render in Advanced Forum 7.2
Same name and namespace in other branches
- 6.2 includes/views/advanced_forum_handler_field_node_topic_icon.inc \advanced_forum_handler_field_node_topic_icon::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- includes/
views/ advanced_forum_handler_field_node_topic_icon.inc, line 52 - Field handler to display the topic icon.
Class
Code
public function render($values) {
$new_posts = advanced_forum_reply_num_new($values->nid);
return theme('forum_icon', array(
'new_posts' => $new_posts,
'num_posts' => empty($values->node_comment_statistics_comment_count) ? 1 : $values->node_comment_statistics_comment_count + 1,
'comment_mode' => $values->node_comment,
'sticky' => $values->node_sticky,
'node_type' => $values->node_type,
));
}