You are here

public function views_plugin_pager_mini::render in Views (for Drupal 7) 7.3

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

Render the pager.

Called during the view render process, this will render the pager.

Parameters

array $input: Any extra GET parameters that should be retained, such as exposed input.

Overrides views_plugin_pager_full::render

File

plugins/views_plugin_pager_mini.inc, line 56
Definition of views_plugin_pager_mini.

Class

views_plugin_pager_mini
The plugin to handle mini pager.

Code

public function render($input) {

  // Overrides the full pager renderer by changing the theme function and
  // leaving out variables that are not used in the mini pager.
  $pager_theme = views_theme_functions('views_mini_pager', $this->view, $this->display);

  // The 1, 3 index are correct.
  // @see theme_pager().
  $tags = array(
    1 => $this->options['tags']['previous'],
    3 => $this->options['tags']['next'],
  );
  return theme($pager_theme, array(
    'tags' => $tags,
    'element' => $this
      ->get_pager_id(),
    'parameters' => $input,
  ));
}