You are here

function forena_block in Forena Reports 6

Same name and namespace in other branches
  1. 6.2 forena.module \forena_block()

Implementation of hook_block

File

./forena.module, line 157

Code

function forena_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $blocks[0] = array(
      'info' => t('My reports'),
      'status' => 1,
      'region' => 'right',
      'visibility' => 1,
      'pages' => 'forena',
    );
    return $blocks;
  }
  if ($op == 'view') {

    // Inlcude the base library
    require_once 'forena.common.inc';
    switch ($delta) {
      case 0:
        $block = array(
          'subject' => 'My Reports',
          'content' => forena_my_reports_block(),
        );
        break;
    }
    return $block;
  }
}