1 system.admin.inc | system_themes_admin_form($form, &$form_state, $theme_options) |
Form to select the administration theme.
See also
system_themes_admin_form_submit()
Related topics
File
- core/
modules/ system/ system.admin.inc, line 247 - Admin page callbacks for the System module.
Code
function system_themes_admin_form($form, &$form_state, $theme_options) {
// Administration theme settings.
$form['admin_theme'] = array(
'#type' => 'fieldset',
'#title' => t('Administration theme'),
);
$form['admin_theme']['admin_theme'] = array(
'#type' => 'select',
'#options' => $theme_options,
'#title' => t('Administration theme'),
'#default_value' => config_get('system.core', 'admin_theme'),
);
$form['admin_theme']['actions'] = array('#type' => 'actions');
$form['admin_theme']['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
return $form;
}