1 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

core/modules/views/plugins/views_plugin_pager_some.inc, line 60
Definition of views_plugin_pager_some.

Class

views_plugin_pager_some
Plugin for views without pagers.

Code

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