function block_refresh_settings in Block Refresh 6
Same name and namespace in other branches
- 5 block_refresh.module \block_refresh_settings()
Callback for admin/settings/block_refresh
4 string references to 'block_refresh_settings'
- block_refresh_block_content in ./
block_refresh.module - page callback for /block_refresh/[module]/[delta] displays the block content, without any other page information
- block_refresh_footer in ./
block_refresh.module - Implementation of hook_footer().
- block_refresh_form_block_admin_configure_alter in ./
block_refresh.module - Implementation of hook_form_FORM_ID_alter() Add a 'Block Refresh' settings fieldset to the block admin form
- block_refresh_submit in ./
block_refresh.module - Submission handler for for block_refresh_menu() This handles the submission on the specific block configuration page
File
- ./
block_refresh.module, line 183
Code
function block_refresh_settings() {
$form = array();
$form['settings'] = array(
'#type' => 'fieldset',
'#title' => t('Global settings'),
'#collapsible' => FALSE,
);
/*
$form['settings']['block_refresh_group_auto'] = array(
'#type' => 'checkbox',
'#title' => t('Group block refreshes'),
'#description' => t('If checked, then all grouped block refresh enabled blocks will be refreshed together, whether manually or using the timer settings below. To group blocks together, check the appropriate block on that block\'s configuration settings page.'),
'#default_value' => variable_get('block_refresh_group_auto', FALSE),
);
*/
$form['settings']['block_refresh_default_automatic_timer'] = array(
'#type' => 'textfield',
'#title' => t('Default block refresh timer'),
'#description' => t('Enter the time, <strong>in seconds</strong>, that blocks will refresh when set to automatic and are set to use the default timer.'),
'#default_value' => variable_get('block_refresh_default_automatic_timer', BLOCK_REFRESH_DEFAULT_AUTOMATIC_TIMER),
);
return system_settings_form($form);
}