You are here

function collapsiblock_admin_settings in Javascript Tools 5

Admin settings.

1 string reference to 'collapsiblock_admin_settings'
collapsiblock_menu in collapsiblock/collapsiblock.module
Implementation of hook_menu().

File

collapsiblock/collapsiblock.module, line 31
Make blocks collapsible.

Code

function collapsiblock_admin_settings() {
  $form = array();
  $form['collapsiblock_default_state'] = array(
    '#type' => 'radios',
    '#title' => t('Default block collapse behavior'),
    '#options' => array(
      1 => t('None.'),
      2 => t('Collapsible, expanded by default.'),
      3 => t('Collapsible, collapsed by default.'),
    ),
    '#default_value' => variable_get('collapsiblock_default_state', 1),
  );
  $form = system_settings_form($form);
  return $form;
}