function styleguide_pager in Style Guide 7
Simulate Drupal pagination,
Parameters
$size: The number of page numbers to display.
$total: The total number of pages to simulate.
Return value
A Drupal pager HTML element.
1 call to styleguide_pager()
- styleguide_styleguide in ./
styleguide.styleguide.inc - Implements hook_styleguide().
File
- ./
styleguide.module, line 635
Code
function styleguide_pager($size = 8, $total = 20) {
global $pager_page_array, $pager_total;
$pager_page_array[1] = $size;
$pager_total[1] = $total;
// For some reason, the pager breaks the page title.
drupal_set_title('Style guide');
return theme('pager', array(
'element' => 1,
));
}