| 5 pager.inc | theme_pager_first($text, $limit, $element = 0, $parameters = array()) |
| 6 pager.inc | theme_pager_first( |
| 7 pager.inc | theme_pager_first($variables) |
| 8 pager.inc | theme_pager_first($variables) |
Format a "first page" link.
Parameters
$text: The name (or image) of the link.
$limit: The number of query results to display per page.
$element: An optional integer to distinguish between multiple pagers on one page.
$attributes: An associative array of query string parameters to append to the pager links.
Return value
An HTML string that generates this piece of the query pager.
Related topics
2 theme calls to theme_pager_first()
File
- includes/
pager.inc, line 139 - Functions to aid in presenting database results as a set of pages.
Code
function theme_pager_first($text, $limit, $element = 0, $attributes = array()) {
global $pager_from_array;
$output = '<div class="pager-first">';
if ($pager_from_array[$element]) {
$output .= '<a href="' . pager_link(pager_load_array(0, $element, $pager_from_array), $element, $attributes) . '">' . $text . '</a>';
}
else {
$output .= ' ';
}
$output .= '</div>';
return $output;
}
Login or register to post comments