You are here

function tableofcontents_block_block in Table of Contents 6.3

Implementation of hook_block().

File

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

Code

function tableofcontents_block_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0]['info'] = t('Table of contents');
      $blocks[0]['cache'] = BLOCK_CACHE_PER_PAGE;
      return $blocks;
    case 'configure':
      return _tableofcontents_block_form();
    case 'save':
      _tableofcontents_block_save($edit);
      break;
    case 'view':
      return _tableofcontents_block_view();
  }
}