You are here

public function views_plugin_pager_some::query in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_pager_some.inc \views_plugin_pager_some::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_some.inc, line 74
Definition of views_plugin_pager_some.

Class

views_plugin_pager_some
Plugin for views without pagers.

Code

public function query() {
  $this->view->query
    ->set_limit($this->options['items_per_page']);
  $this->view->query
    ->set_offset($this->options['offset']);
}