You are here

function views_plugin_pager_none::query in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 plugins/views_plugin_pager_none.inc \views_plugin_pager_none::query()

Modify the query for paging

This is called during the build phase and can directly modify the query.

Overrides views_plugin_pager::query

File

plugins/views_plugin_pager_none.inc, line 63

Class

views_plugin_pager_none
Plugin for views without pagers.

Code

function query() {

  // The only query modifications we might do are offsets.
  if (!empty($this->options['offset'])) {
    $this->view->query
      ->set_offset($this->options['offset']);
  }
}