You are here

function rotor_block in Rotor Banner 5.7

Same name and namespace in other branches
  1. 5 rotor.module \rotor_block()
  2. 6 rotor.module \rotor_block()

Block hook

File

./rotor.module, line 84
A rotor banner consists in a set of images that will be changing. This module is made using jquery.

Code

function rotor_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0] = array(
        'info' => t('The rotor banner block'),
        'weight' => 0,
        'enabled' => 0,
        'region' => 'content',
      );
      return $blocks;
    case 'view':

      // Only one delta so far so we are not checking the delta
      $block = array(
        'subject' => t('Information'),
        'content' => rotor_block_content(),
      );
      return $block;
  }
}