function forward_block_configure in Forward 7
Same name and namespace in other branches
- 7.3 forward.module \forward_block_configure()
- 7.2 forward.module \forward_block_configure()
Implements hook_block_configure().
File
- ./
forward.module, line 1456
Code
function forward_block_configure($delta) {
switch ($delta) {
case 'stats':
$block_options = array(
/*'today' => t('Most Emailed Today'),
'week' => t('Most Emailed This Week'),*/
'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('Display form in block'),
'#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;
}
}