function collapsiblock_submit in Collapsiblock 6
Same name and namespace in other branches
- 8 collapsiblock.module \collapsiblock_submit()
- 7.2 collapsiblock.module \collapsiblock_submit()
- 7 collapsiblock.module \collapsiblock_submit()
1 string reference to 'collapsiblock_submit'
- collapsiblock_form_alter in ./
collapsiblock.module - Implementation of hook_form_alter().
File
- ./
collapsiblock.module, line 168 - Make blocks collapsible.
Code
function collapsiblock_submit($form, &$form_state) {
$settings = variable_get('collapsiblock_settings', array());
$settings['block-' . $form_state['values']['module'] . '-' . $form_state['values']['delta']] = $form_state['values']['collapse_type'];
variable_set('collapsiblock_settings', $settings);
}