You are here

function advanced_forum_plugin_style_forum_topic_list::query in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.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.

File

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

Class

advanced_forum_plugin_style_forum_topic_list
Style plugin to render each item as a row in a table.

Code

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