You are here

function theme_pager_last in Drupal 6

Same name and namespace in other branches
  1. 4 includes/pager.inc \theme_pager_last()
  2. 5 includes/pager.inc \theme_pager_last()
  3. 7 includes/pager.inc \theme_pager_last()

Returns HTML for a "last page" link.

Parameters

$text: The name (or image) of the link.

$limit: The number of query results to display per page.

$element: An optional integer to distinguish between multiple pagers on one page.

$parameters: An associative array of query string parameters to append to the pager links.

Return value

An HTML string that generates this piece of the query pager.

Related topics

2 theme calls to theme_pager_last()
theme_pager in includes/pager.inc
Returns HTML for a query pager.
theme_pager_next in includes/pager.inc
Returns HTML for a "next page" link.

File

includes/pager.inc, line 346
Functions to aid in presenting database results as a set of pages.

Code

function theme_pager_last($text, $limit, $element = 0, $parameters = array()) {
  global $pager_page_array, $pager_total;
  $output = '';

  // If we are anywhere but the last page
  if ($pager_page_array[$element] < $pager_total[$element] - 1) {
    $output = theme('pager_link', $text, pager_load_array($pager_total[$element] - 1, $element, $pager_page_array), $element, $parameters);
  }
  return $output;
}