function live_css_admin in Live CSS 7
Same name and namespace in other branches
- 6.2 live_css.module \live_css_admin()
- 7.2 live_css.module \live_css_admin()
Implements hook_settings()
1 string reference to 'live_css_admin'
- live_css_menu in ./
live_css.module - Implements hook_menu().
File
- ./
live_css.module, line 42
Code
function live_css_admin() {
$form = array();
//get theme names
$form['live_css_theme'] = array(
'#type' => 'select',
'#title' => t('Editor Theme'),
'#default_value' => variable_get('live_css_theme', 'twilight'),
'#options' => live_css_list_themes(),
);
$form['live_css_hideadmin'] = array(
'#type' => 'checkbox',
'#title' => t('Hide Admin Menu'),
'#default_value' => variable_get('live_css_hideadmin', 1),
'#description' => t('Automatically hides the administration menu when editing CSS.'),
);
$form['live_css_hidemodules'] = array(
'#type' => 'checkbox',
'#title' => t('Only show theme CSS'),
'#default_value' => variable_get('live_css_hidemodules', 0),
'#description' => t('Removes module and other styles from the CSS list.'),
);
return system_settings_form($form);
}