function theme_pager_first

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 pager.inc theme_pager_first($variables)
cle7 pager.inc theme_pager_first($variables)
elmsmedia7 pager.inc theme_pager_first($variables)
icor7 pager.inc theme_pager_first($variables)
meedjum_blog7 pager.inc theme_pager_first($variables)
mooc7 pager.inc theme_pager_first($variables)

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

7 theme calls to theme_pager_first()
aurora_pager in sites/all/themes/ulmus/aurora/includes/pager.inc
Returns HTML for a query pager.
aurora_pager_previous in sites/all/themes/ulmus/aurora/includes/pager.inc
Returns HTML for the "previous page" link in a query pager.
fontfolio_pager in sites/all/themes/ulmus/fontfolio/template.php
Overrides core theme_pager function to manipulate pager classes
omega_pager in sites/all/themes/ulmus/omega/omega/includes/omega.theme.inc
Returns HTML for a query pager.
tao_pager in sites/all/themes/ulmus/tao/template.php
Override of theme_pager(). Easily one of the most obnoxious theming jobs in Drupal core. Goals: consolidate functionality into less than 5 functions and ensure the markup will not conflict with major other styles (theme_item_list() in particular).

... See full list

8 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.

aurora_pager in sites/all/themes/ulmus/aurora/includes/pager.inc
Returns HTML for a query pager.
aurora_pager_previous in sites/all/themes/ulmus/aurora/includes/pager.inc
Returns HTML for the "previous page" link in a query pager.
drupal_common_theme in includes/common.inc
Provides theme registration for themes across .inc files.
fontfolio_pager in sites/all/themes/ulmus/fontfolio/template.php
Overrides core theme_pager function to manipulate pager classes
omega_pager in sites/all/themes/ulmus/omega/omega/includes/omega.theme.inc
Returns HTML for a query pager.

... See full list

File

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;
}