You are here

public function advanced_forum_plugin_style_forum_topic_list::query in Advanced Forum 7.2

Same name and namespace in other branches
  1. 6.2 includes/views/advanced_forum_plugin_style_forum_topic_list.inc \advanced_forum_plugin_style_forum_topic_list::query()

Add a couple of fields to the query that we can later use. We are going to specificly alias them because this style is not meant to be used on relationships.

Overrides views_plugin_style::query

File

includes/views/advanced_forum_plugin_style_forum_topic_list.inc, line 54
Contains the topic list style plugin.

Class

advanced_forum_plugin_style_forum_topic_list

Code

public function query() {
  $this->view->query
    ->add_field('node', 'sticky', 'topic_is_sticky');
  $this->view->query
    ->add_field('forum', 'tid', 'topic_actual_forum');
}