function views_customfield_handler_field_phpcode::pre_execute in Views Custom Field 6
File
- includes/
views_customfield_handler_field_phpcode.inc, line 75 - Contains the 'customfield' phpcode field handler.
Class
Code
function pre_execute() {
// If we're sorting, save the original pager and let Views get all results.
if ($this->options['sortable'] != VIEWS_CUSTOMFIELD_SORTABLE_NO && $this->sort_order) {
$this->pager = $this->view->pager;
// save the pager
$this->view
->set_items_per_page(0);
}
}