You are here

function casetracker_block in Case Tracker 6

Same name and namespace in other branches
  1. 5 casetracker.module \casetracker_block()

Implementation of hook_block

File

./casetracker.module, line 465
Enables the handling of projects and their cases.

Code

function casetracker_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0] = array(
        'info' => t('Jump to case'),
      );
      return $blocks;
    case 'configure':
      return array();
    case 'save':
      return;
    case 'view':
      switch ($delta) {
        case 0:
          if (user_access('access content')) {
            $block['subject'] = t('Jump to case');
            $block['content'] = drupal_get_form('casetracker_block_jump_to_case_number');
          }
          break;
      }
      return $block;
  }
}