function block_refresh_submit in Block Refresh 6
Same name and namespace in other branches
- 5 block_refresh.module \block_refresh_submit()
- 7.2 block_refresh.module \block_refresh_submit()
- 7 block_refresh.module \block_refresh_submit()
Submission handler for for block_refresh_menu() This handles the submission on the specific block configuration page
1 string reference to 'block_refresh_submit'
- 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
File
- ./
block_refresh.module, line 89
Code
function block_refresh_submit($form, &$form_state) {
$settings = variable_get('block_refresh_settings', array());
$settings['block-' . $form_state['values']['module'] . '-' . $form_state['values']['delta']]['enabled'] = $form_state['values']['block_refresh_enable'];
$settings['block-' . $form_state['values']['module'] . '-' . $form_state['values']['delta']]['manual'] = $form_state['values']['block_refresh_manual'];
$settings['block-' . $form_state['values']['module'] . '-' . $form_state['values']['delta']]['group'] = $form_state['values']['block_refresh_group'];
$settings['block-' . $form_state['values']['module'] . '-' . $form_state['values']['delta']]['timer'] = $form_state['values']['block_refresh_timer'];
$settings['block-' . $form_state['values']['module'] . '-' . $form_state['values']['delta']]['block'] = array(
'block' => $form_state['values']['module'],
'delta' => $form_state['values']['delta'],
);
variable_set('block_refresh_settings', $settings);
}