function views_plugin_pager_some::query in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.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 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']);
}