function css_editor_admin_settings in CSS Editor 7
Form function for item `admin/config/user-interface/css`.
1 string reference to 'css_editor_admin_settings'
- css_editor_menu in ./
css_editor.module - Implements hook_menu().
File
- ./
css_editor.module, line 33
Code
function css_editor_admin_settings() {
$themes = array();
foreach (list_themes(TRUE) as $name => $theme) {
if ($theme->status) {
$themes[$name] = $name;
}
}
$form['css_editor_enabled_themes'] = array(
'#type' => 'checkboxes',
'#title' => t('Enabled themes'),
'#description' => t('Choose which themes can use the custom CSS feature.'),
'#options' => $themes,
'#default_value' => variable_get('css_editor_enabled_themes', array()),
);
$form = system_settings_form($form);
return $form;
}