function collapsiblock_submit in Collapsiblock 7
Same name and namespace in other branches
- 8 collapsiblock.module \collapsiblock_submit()
- 6 collapsiblock.module \collapsiblock_submit()
- 7.2 collapsiblock.module \collapsiblock_submit()
Form submission handler for block_admin_configure().
See also
1 string reference to 'collapsiblock_submit'
- collapsiblock_form_alter in ./
collapsiblock.module - Implements hook_form_alter().
File
- ./
collapsiblock.module, line 191 - Make blocks collapsible.
Code
function collapsiblock_submit($form, &$form_state) {
$settings = variable_get('collapsiblock_settings', array());
$settings['block-' . str_replace('_', '-', $form_state['values']['module']) . '-' . drupal_strtolower(str_replace('_', '-', $form_state['values']['delta']))] = $form_state['values']['collapse_type'];
variable_set('collapsiblock_settings', $settings);
}