You are here

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

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_pager_full.inc \views_plugin_pager_full::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::render

1 method overrides views_plugin_pager_full::render()
views_plugin_pager_mini::render in plugins/views_plugin_pager_mini.inc
Render the pager.

File

plugins/views_plugin_pager_full.inc, line 282
Definition of views_plugin_pager_full.

Class

views_plugin_pager_full
The plugin to handle full pager.

Code

public function render($input) {
  $pager_theme = views_theme_functions('pager', $this->view, $this->display);

  // The 0, 1, 3, 4 index are correct. See theme_pager documentation.
  $tags = array(
    0 => $this->options['tags']['first'],
    1 => $this->options['tags']['previous'],
    3 => $this->options['tags']['next'],
    4 => $this->options['tags']['last'],
  );
  $output = theme($pager_theme, array(
    'tags' => $tags,
    'element' => $this
      ->get_pager_id(),
    'parameters' => $input,
    'quantity' => $this->options['quantity'],
  ));
  return $output;
}