public function views_plugin_pager::set_current_page in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_pager.inc \views_plugin_pager::set_current_page()
Set the current page.
Parameters
int $number: If provided, the page number will be set to this. If NOT provided, the page number will be set from the global page array.
1 method overrides views_plugin_pager::set_current_page()
- views_plugin_pager_full::set_current_page in plugins/
views_plugin_pager_full.inc - Set the current page.
File
- plugins/
views_plugin_pager.inc, line 98 - Definition of views_plugin_pager.
Class
- views_plugin_pager
- The base plugin to handle pager.
Code
public function set_current_page($number = NULL) {
if (!is_numeric($number) || $number < 0) {
$number = 0;
}
$this->current_page = $number;
}