You are here

function shouts_block in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 modules/shouts/shouts.module \shouts_block()

Implementation of hook_block().

File

modules/shouts/shouts.module, line 51
Gives the possibility to the user to shout a message.

Code

function shouts_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0]['info'] = t('Shout form');
      return $blocks;
    case 'view':
      switch ($delta) {
        case 0:
          $block['subject'] = t('Make shout');
          $block['content'] = drupal_get_form('shouts_shout_form');
          return $block;
          break;
      }
  }
}