You are here

public function views_plugin_pager::set_items_per_page in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_pager.inc \views_plugin_pager::set_items_per_page()

Set how many items per page this pager will display.

This is mostly used for things that will override the value.

1 call to views_plugin_pager::set_items_per_page()
views_plugin_pager_none::init in plugins/views_plugin_pager_none.inc
Initialize the plugin.

File

plugins/views_plugin_pager.inc, line 61
Definition of views_plugin_pager.

Class

views_plugin_pager
The base plugin to handle pager.

Code

public function set_items_per_page($items) {
  $this->options['items_per_page'] = (int) $items;
}