Display a "Show All" (pages) link

Last modified: March 6, 2009 - 21:53

For paging module, to add a "Show all" link in the pager, override the theme('pager') function and add the following right before the return statement:

<?php
    $items
[] = array(
     
'class' => 'pager-all',
     
'data' => l(t('Show all'), $_GET['q'], array('query' => array('page' => 'full'))),
    );
?>

 
 

Drupal is a registered trademark of Dries Buytaert.