You are here

function accordion_blocks_settings_form in Accordion Blocks 6

1 string reference to 'accordion_blocks_settings_form'
accordion_blocks_menu in ./accordion_blocks.module

File

./accordion_blocks.module, line 60

Code

function accordion_blocks_settings_form() {
  $form = array();
  global $user;
  $themes = list_themes();
  $theme = !empty($user->theme) && !empty($themes[$user->theme]->status) ? $user->theme : variable_get('theme_default', 'garland');
  $theme = $custom_theme && $themes[$custom_theme] ? $custom_theme : $theme;
  $regions_list = system_region_list($theme);
  $form['accordion_regions'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Select Regions to apply Accordion effect'),
    '#options' => $regions_list,
    '#default_value' => variable_get('accordion_regions', array(
      'left' => 'left',
      'right' => 'right',
    )),
  );
  return system_settings_form($form);
}