function views_plugin_pager_some::summary_title

3.x views_plugin_pager_some.inc views_plugin_pager_some::summary_title()

Return a string to display as the clickable title for the pager plugin.

Overrides views_plugin_pager::summary_title

File

plugins/views_plugin_pager_some.inc, line 14
Definition of views_plugin_pager_some.

Class

views_plugin_pager_some
Plugin for views without pagers.

Code

function summary_title() {
  if (!empty($this->options['offset'])) {
    return format_plural($this->options['items_per_page'], '@count item, skip @skip', '@count items, skip @skip', array('@count' => $this->options['items_per_page'], '@skip' => $this->options['offset']));
  }
  return format_plural($this->options['items_per_page'], '@count item', '@count items', array('@count' => $this->options['items_per_page']));
}