function forward_block_configure in Forward 7.2
Same name and namespace in other branches
- 7.3 forward.module \forward_block_configure()
- 7 forward.module \forward_block_configure()
Implements hook_block_configure().
File
- ./
forward.module, line 1326
Code
function forward_block_configure($delta) {
switch ($delta) {
case 'stats':
$block_options = array(
'allTime' => t('Most Emailed of All Time'),
'recent' => t('Most Recently Emailed'),
);
$form['forward_block_type'] = array(
'#type' => 'radios',
'#title' => t('Block type'),
'#default_value' => variable_get('forward_block_type', ""),
'#options' => $block_options,
'#description' => t('Choose the type of statistics to display'),
);
return $form;
case 'form':
$form['forward_block_form'] = array(
'#type' => 'radios',
'#title' => t('Interface'),
'#default_value' => variable_get('forward_block_form', variable_get('forward_form_type', 'link')),
'#options' => array(
'form' => 'form',
'link' => 'link',
),
'#description' => t('Choose whether to display the full form in the block or just an email this page link.'),
);
return $form;
}
}