You are here

function collapsiblock_submit in Collapsiblock 7

Same name and namespace in other branches
  1. 8 collapsiblock.module \collapsiblock_submit()
  2. 6 collapsiblock.module \collapsiblock_submit()
  3. 7.2 collapsiblock.module \collapsiblock_submit()

Form submission handler for block_admin_configure().

See also

block_admin_configure()

collapsiblock_form_alter()

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);
}