Full ELMS Learning Network documentation
function theme_pager_previous
×
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_previous($variables) |
cle7 pager.inc | theme_pager_previous($variables) |
elmsmedia7 pager.inc | theme_pager_previous($variables) |
icor7 pager.inc | theme_pager_previous($variables) |
meedjum_blog7 pager.inc | theme_pager_previous($variables) |
mooc7 pager.inc | theme_pager_previous($variables) |
Returns HTML for the "previous 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.
- interval: The number of pages to move backward when the link is clicked.
- parameters: An associative array of query string parameters to append to the pager links.
Related topics
9 theme calls to theme_pager_previous()
- aurora_pager in sites/
all/ themes/ ulmus/ aurora/ includes/ pager.inc - Returns HTML for 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.
- omega_views_mini_pager in sites/
all/ themes/ ulmus/ omega/ omega/ includes/ omega.theme.inc - Implements hook_views_mini_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).
10 string references to the theme hook from theme_pager_previous()
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.
- 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.
- omega_views_mini_pager in sites/
all/ themes/ ulmus/ omega/ omega/ includes/ omega.theme.inc - Implements hook_views_mini_pager().
File
- includes/
pager.inc, line 480 - Functions to aid in presenting database results as a set of pages.
Code
function theme_pager_previous($variables) {
$text = $variables['text'];
$element = $variables['element'];
$interval = $variables['interval'];
$parameters = $variables['parameters'];
global $pager_page_array;
$output = '';
// If we are anywhere but the first page
if ($pager_page_array[$element] > 0) {
$page_new = pager_load_array($pager_page_array[$element] - $interval, $element, $pager_page_array);
// If the previous page is the first page, mark the link as such.
if ($page_new[$element] == 0) {
$output = theme('pager_first', array('text' => $text, 'element' => $element, 'parameters' => $parameters));
}
// The previous page is not the first page.
else {
$output = theme('pager_link', array('text' => $text, 'page_new' => $page_new, 'element' => $element, 'parameters' => $parameters));
}
}
return $output;
}