You are here

function pm_block_view in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 8 pm.module \pm_block_view()
  2. 7.3 pm.module \pm_block_view()
  3. 7.2 pm.module \pm_block_view()

Implements hook_block_view().

File

./pm.module, line 390
Main module file for the Project Management module.

Code

function pm_block_view($delta = '') {

  // Define Project Management menu block
  $block = array();
  switch ($delta) {
    case 'pm_menu':
      $block = array(
        'subject' => 'Project Management',
        'content' => pm_dashboard('block'),
      );
      break;
  }
  return $block;
}