function marquee_block_block_configure in Marquee Block 7
Implementation of hook_block_configure().
File
- ./
marquee_block.module, line 33
Code
function marquee_block_block_configure($delta = '') {
$form = array();
if ($delta == 'marquee-block') {
$speed_options = array();
$speed_options['1'] = t('Very Slow');
$speed_options['2'] = t('Slow');
$speed_options['3'] = t('Medium');
$speed_options['4'] = t('Fast');
$speed_options['5'] = t('Very Fast');
$scroll_directions = array();
$scroll_directions['left'] = t('Left');
$scroll_directions['right'] = t('Right');
$scroll_behaviors = array();
$scroll_behaviors['scroll'] = t('Scroll');
$scroll_behaviors['slide'] = t('Slide');
$scroll_behaviors['alternate'] = t('Alternate');
$form['marquee_block_message'] = array(
'#type' => 'textarea',
'#title' => t('Scrolling Message'),
'#description' => t('Enter your scrolling message here. HTML tags are allowed.'),
'#default_value' => variable_get('marquee_block_message', ''),
);
$form['marquee_block_scroll_speed'] = array(
'#type' => 'select',
'#title' => t('Scroll Speed'),
'#options' => $speed_options,
'#default_value' => variable_get('marquee_block_scroll_speed', 3),
);
$form['marquee_block_scroll_direction'] = array(
'#type' => 'radios',
'#title' => t('Scroll Direction'),
'#options' => $scroll_directions,
'#default_value' => variable_get('marquee_block_scroll_direction', 'left'),
);
$form['marquee_block_scroll_behavior'] = array(
'#type' => 'radios',
'#title' => t('Scroll Behavior'),
'#options' => $scroll_behaviors,
'#default_value' => variable_get('marquee_block_scroll_behavior', 'scroll'),
);
}
return $form;
}