Paging block?
batman1983 - October 19, 2007 - 23:55
| Project: | Paging |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hey there,
i'm using the patch7 version of the great paging modul. But i'd like to configure the pager as a block to set it in a sidebar.
I want to use the pager with 1 - 2 - 3 - 4 next last in the bottom of the node and die page names (with are given by [pagebreak title=Title of the first page]) in a sidebar. What should be in the paging_block code?
/**
* Implementation of hook_block().
*
* Paging Navigation
*/
function paging_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t('Navigation');
return $blocks;
case 'view':
?????
return $block;
}
} Greetings from Germany,
Batman
