1 views_plugin_pager_full.inc views_plugin_pager_full::get_pager_total()

File

core/modules/views/plugins/views_plugin_pager_full.inc, line 333
Definition of views_plugin_pager_full.

Class

views_plugin_pager_full
The plugin to handle full pager.

Code

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;
  }
}