function theme_pager_first

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

Adapted from: https://api.drupal.org/api/drupal/includes%21pager.inc/function/theme_pa...

File

includes/theme.inc, line 392

Code

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

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