public function views_plugin_pager_none::init 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::init()
Initialize the plugin.
Parameters
view $view: The view object.
object $display: The display handler.
Overrides views_plugin_pager::init
File
- plugins/
views_plugin_pager_none.inc, line 18 - Definition of views_plugin_pager_none.
Class
- views_plugin_pager_none
- Plugin for views without pagers.
Code
public 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);
}