function views_plugin_pager_some::query

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_pager_some.inc \views_plugin_pager_some::query()

Overrides views_plugin_pager::query

File

plugins/views_plugin_pager_some.inc, line 51

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']);
}