You are here

function slickgrid_views_plugin::query in Slickgrid 7

Same name and namespace in other branches
  1. 6 slickgrid_views_plugin.inc \slickgrid_views_plugin::query()
  2. 7.2 includes/slickgrid_views_plugin.inc \slickgrid_views_plugin::query()

Add anything to the query that we might need to.

Overrides views_plugin_style::query

File

includes/slickgrid_views_plugin.inc, line 536

Class

slickgrid_views_plugin
Extending the view_plugin_style class to provide a slickgrid style.

Code

function query() {

  // We always want the query to be distinct - this also adds the correct base field
  $this->view->query
    ->set_distinct();
}