You are here

function delta_theme_settings_config in Delta 7.2

Same name and namespace in other branches
  1. 6 delta-settings.inc \delta_theme_settings_config()
  2. 7 delta-settings.inc \delta_theme_settings_config()

Menu callback; displays the delta listing page.

1 string reference to 'delta_theme_settings_config'
delta_ui_menu in ./delta_ui.module
Implementation of hook_menu().

File

./delta_ui.admin.inc, line 24
Delta UI functionality

Code

function delta_theme_settings_config($form, &$form_state) {
  drupal_set_title(t('Delta Theme Settings'));
  $form['delta'] = array(
    '#type' => 'fieldset',
    '#title' => t('Delta Theme API Settings & Configuration'),
    '#description' => t('In these default settings for <a href="http://himer.us/delta-module">Delta</a>, you can select which active themes will use contextual theme settings. Only enabled themes are listed here.'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );

  // get active themes for the settings form
  $filter_themes = FALSE;
  $themes = delta_get_themes_form_array($filter_themes);

  // create checkboxes to select themes that may be manipulated
  $form['delta']['delta_themes'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Themes to manipulate'),
    '#options' => $themes,
    '#default_value' => variable_get('delta_themes', array()),
    '#description' => t('Here you may select the themes that should be manipulated by Delta. Only themes that are enabled will be listed. You can enable/disable themes via the <a href="' . base_path() . 'admin/appearance">Theme Administration</a> page.'),
  );
  return system_settings_form($form);
}