You are here

function content_theme_admin_settings in Content Theme 7

Menu callback; configures the content_theme module.

1 string reference to 'content_theme_admin_settings'
content_theme_menu in ./content_theme.module
Implements hook_menu().

File

./content_theme.admin.inc, line 312
Admin page callbacks for the content_theme module.

Code

function content_theme_admin_settings($form, &$form_state) {

  // Content node
  $form['content_node'] = array(
    '#type' => 'fieldset',
    '#title' => t('Content node themes'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['content_node']['content_theme_content_node_list'] = array(
    '#type' => 'radios',
    '#title' => t('Drop-down list options'),
    '#default_value' => variable_get('content_theme_content_node_list', 'enabled'),
    '#options' => array(
      'enabled' => t('Only enabled themes.'),
      'all' => t('All themes.'),
    ),
  );

  // Content node
  $form['content_type'] = array(
    '#type' => 'fieldset',
    '#title' => t('Content type themes'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['content_type']['content_theme_content_type_list'] = array(
    '#type' => 'radios',
    '#title' => t('Drop-down list options'),
    '#default_value' => variable_get('content_theme_content_type_list', 'enabled'),
    '#options' => array(
      'enabled' => t('Only enabled themes.'),
      'all' => t('All themes.'),
    ),
  );

  // Content wide
  $form['content_wide'] = array(
    '#type' => 'fieldset',
    '#title' => t('Content wide themes'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['content_wide']['content_theme_content_wide_list'] = array(
    '#type' => 'radios',
    '#title' => t('Drop-down list options'),
    '#default_value' => variable_get('content_theme_content_wide_list', 'enabled'),
    '#options' => array(
      'enabled' => t('Only enabled themes.'),
      'all' => t('All themes.'),
    ),
  );
  return system_settings_form($form);
}