function views_plugin_pager_none::init in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.3 plugins/views_plugin_pager_none.inc \views_plugin_pager_none::init()
Initialize the plugin.
Parameters
$view: The view object.
$display: The display handler.
Overrides views_plugin_pager::init
File
- plugins/
views_plugin_pager_none.inc, line 10
Class
- views_plugin_pager_none
- Plugin for views without pagers.
Code
function init(&$view, &$display, $options = array()) {
parent::init($view, $display, $options);
// If the pager is set to none, then it should show all items.
$this
->set_items_per_page(0);
}