function themekey_settings_form in ThemeKey 7.2
Same name and namespace in other branches
- 6.4 themekey_admin.inc \themekey_settings_form()
- 6.2 themekey_admin.inc \themekey_settings_form()
- 6.3 themekey_admin.inc \themekey_settings_form()
- 7.3 themekey_admin.inc \themekey_settings_form()
- 7 themekey_admin.inc \themekey_settings_form()
Form builder for the ThemeKey settings form.
1 string reference to 'themekey_settings_form'
- themekey_menu in ./
themekey.module - Implements hook_menu().
File
- ./
themekey_admin.inc, line 474
Code
function themekey_settings_form($form, &$form_state) {
$form['settings'] = array(
'#type' => 'fieldset',
'#title' => t('General Settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['settings']['themekey_path_case_sensitive'] = array(
'#type' => 'checkbox',
'#title' => t('Property drupal:path is case sensitive'),
'#default_value' => variable_get('themekey_path_case_sensitive', 0),
'#description' => t('Drupal paths are case insensitive by default. Modules like Global Redirect might change this behavior.'),
);
$form['settings']['themekey_allthemes'] = array(
'#type' => 'checkbox',
'#title' => t('Provide all themes for selection'),
'#default_value' => variable_get('themekey_allthemes', 0),
'#description' => t('Make all installed themes available for selection, not enabled ones only.'),
);
$form['settings']['themekey_theme_maintain'] = array(
'#type' => 'checkbox',
'#title' => t('Retain the theme until a new theme is set'),
'#default_value' => variable_get('themekey_theme_maintain', 0),
'#description' => t('Select this option to have logged-in users stay in the same theme until they browse to a new page with an explicit theme set.'),
);
$form['settings']['themekey_theme_maintain_anonymous'] = array(
'#type' => 'checkbox',
'#title' => t('Retain the theme until a new theme is set for anonymous users'),
'#default_value' => variable_get('themekey_theme_maintain_anonymous', 0),
'#description' => t('Select this option to have anonymous users stay in the same theme until they browse to a new page with an explicit theme set.'),
);
if (module_exists('forum')) {
$form['settings']['themekey_module_forum_triggers_taxonomy_vid'] = array(
'#type' => 'checkbox',
'#title' => t('Forum pages trigger property taxonomy:vid'),
'#default_value' => variable_get('themekey_module_forum_triggers_taxonomy_vid', 0),
'#description' => t('Property taxonomy:vid is set when a single node is shown (e.g. /node/17). If this option is selected, forum pages like /forum/28 will set taxonomy:vid as well.'),
);
}
$form['settings']['themekey_cron_page_cache'] = array(
'#type' => 'checkbox',
'#title' => t('Cron cleans up page cache'),
'#default_value' => variable_get('themekey_cron_page_cache', 1),
'#description' => t('Select this option if ThemeKey should check rules containing time-based properties when cron runs. ThemeKey will carefully clean up the page cache if necessary to provide the right theme to anonymous users automatically, e.g. a Christmas theme.'),
);
return system_settings_form($form);
}