You are here

function paging_block in Paging 6

Implementation of hook_block().

File

./paging.module, line 336
Allows users to use a tag to break up a node into multiple pages.

Code

function paging_block($op = 'list', $delta = 0, $edit = array()) {

  // List the block in administration.
  if ($op == 'list') {
    $blocks[0] = array(
      'info' => t('Page Navigation (Paging)'),
      'weight' => 0,
      'status' => 0,
    );
    return $blocks;
  }
  else {
    if ($op == 'view' && $delta == 0 && $GLOBALS['_paging_display_block']) {
      $block = array(
        'subject' => t('Page navigation'),
        'content' => paging_render_names(),
      );
      return $block;
    }
  }
}