You are here

function views_plugin_pager_mini::summary_title in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 plugins/views_plugin_pager_mini.inc \views_plugin_pager_mini::summary_title()

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

Overrides views_plugin_pager_full::summary_title

File

plugins/views_plugin_pager_mini.inc, line 9

Class

views_plugin_pager_mini
The plugin to handle full pager.

Code

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