Returns HTML for the "next page" link in a query pager.
$variables: An associative array containing:
function theme_pager_next($variables) {
$text = $variables['text'];
$element = $variables['element'];
$interval = $variables['interval'];
$parameters = $variables['parameters'];
global $pager_page_array, $pager_total;
$output = '';
// If we are anywhere but the last page
if ($pager_page_array[$element] < $pager_total[$element] - 1) {
$page_new = pager_load_array($pager_page_array[$element] + $interval, $element, $pager_page_array);
// If the next page is the last page, mark the link as such.
if ($page_new[$element] == $pager_total[$element] - 1) {
$output = theme('pager_last', array(
'text' => $text,
'element' => $element,
'parameters' => $parameters,
));
}
else {
$output = theme('pager_link', array(
'text' => $text,
'page_new' => $page_new,
'element' => $element,
'parameters' => $parameters,
));
}
}
return $output;
}