public function views_plugin_pager_none::query in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.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 97 - Definition of views_plugin_pager_none.
Class
- views_plugin_pager_none
- Plugin for views without pagers.
Code
public function query() {
// The only query modifications we might do are offsets.
if (!empty($this->options['offset'])) {
$this->view->query
->set_offset($this->options['offset']);
}
}