You are here

function tableofcontents_block_block_view in Table of Contents 7

Implements hook_block_view().

File

tableofcontents_block/tableofcontents_block.module, line 97
main file for module providing a block

Code

function tableofcontents_block_block_view($delta) {
  $block = array();
  switch ($delta) {
    case 'tableofcontents_block':
      $block['subject'] = t('Table of contents');
      $block['content'] = _tableofcontents_block_view();
      break;
  }
  return $block;
}