function themekey_debug_settings_form in ThemeKey 6.2
Same name and namespace in other branches
- 6.4 themekey_debug_admin.inc \themekey_debug_settings_form()
- 6.3 themekey_debug_admin.inc \themekey_debug_settings_form()
- 7.3 themekey_debug_admin.inc \themekey_debug_settings_form()
- 7 themekey_debug_admin.inc \themekey_debug_settings_form()
- 7.2 themekey_debug_admin.inc \themekey_debug_settings_form()
Form builder for the form to enable ThemeKey debug mode.
1 string reference to 'themekey_debug_settings_form'
- themekey_debug_menu in ./
themekey_debug.module - Implements hook_menu().
File
- ./
themekey_debug_admin.inc, line 18 - provides a debug mode for module ThemeKey.
Code
function themekey_debug_settings_form() {
$form = array();
$form['themekey_debug'] = array(
'#type' => 'fieldset',
'#title' => t('Debug Settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#description' => t("Debug information will only be visible for site's administrator."),
);
$form['themekey_debug']['themekey_debug_show_property_values'] = array(
'#type' => 'checkbox',
'#title' => t('Show ThemeKey properties values'),
'#default_value' => variable_get('themekey_debug_show_property_values', FALSE),
'#description' => t('Shows current values of ThemeKey properties at the bottom of every page. Additionally you can start creating a corresponding Theme Switching Rule by clicking on a value.'),
);
$form['themekey_debug']['themekey_debug_trace_rule_switching'] = array(
'#type' => 'checkbox',
'#title' => t('Trace ThemeKey rule switching'),
'#default_value' => variable_get('themekey_debug_trace_rule_switching', FALSE),
'#description' => t('Prints out detailed information about matching or non matching rules.'),
);
$form['themekey_debug']['themekey_debug_non_admin_users'] = array(
'#type' => 'checkbox',
'#title' => t('Show debug information to non admin users'),
'#default_value' => variable_get('themekey_debug_non_admin_users', FALSE),
'#description' => t('All debug output will be shown to all users including anonymous users. Be carefull in production environments and turn off page caching first!'),
);
$form['buttons']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
return system_settings_form($form);
}