function theme_pager_first

7.x pager.inc theme_pager_first($variables)
5.x pager.inc theme_pager_first($text, $limit, $element = 0, $parameters = array())
6.x pager.inc theme_pager_first($text, $limit, $element = 0, $parameters = array())

Returns HTML for the "first page" link in a query pager.

Parameters

$variables: An associative array containing:

  • text: The name (or image) of the link.
  • 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.

Related topics

2 theme calls to theme_pager_first()
theme_pager in drupal/includes/pager.inc
Returns HTML for a query pager.
theme_pager_previous in drupal/includes/pager.inc
Returns HTML for the "previous page" link in a query pager.
3 string references to the theme hook from theme_pager_first()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in drupal/includes/common.inc
Provides theme registration for themes across .inc files.
theme_pager in drupal/includes/pager.inc
Returns HTML for a query pager.
theme_pager_previous in drupal/includes/pager.inc
Returns HTML for the "previous page" link in a query pager.

File

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

Code

function theme_pager_first($variables) {
  $text = $variables['text'];
  $element = $variables['element'];
  $parameters = $variables['parameters'];
  global $pager_page_array;
  $output = '';

  // If we are anywhere but the first page
  if ($pager_page_array[$element] > 0) {
    $output = theme('pager_link', array('text' => $text, 'page_new' => pager_load_array(0, $element, $pager_page_array), 'element' => $element, 'parameters' => $parameters));
  }

  return $output;
}