public function views_plugin_pager_full::get_pager_total in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_pager_full.inc \views_plugin_pager_full::get_pager_total()
1 call to views_plugin_pager_full::get_pager_total()
- views_plugin_pager_full::update_page_info in plugins/
views_plugin_pager_full.inc - Update global paging info.
File
- plugins/
views_plugin_pager_full.inc, line 340 - Definition of views_plugin_pager_full.
Class
- views_plugin_pager_full
- The plugin to handle full pager.
Code
public function get_pager_total() {
if ($items_per_page = intval($this
->get_items_per_page())) {
return ceil($this->total_items / $items_per_page);
}
else {
return 1;
}
}