function rotor_block in Rotor Banner 5
Same name and namespace in other branches
- 5.7 rotor.module \rotor_block()
- 6 rotor.module \rotor_block()
Implementation of hook_block().
File
- ./
rotor.module, line 80 - 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('Rotor banner'),
'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;
}
}