function system_themes_admin_form

8.x system_themes_admin_form($form, &$form_state, $theme_options)

Form to select the administration theme.

See also


Related topics

1 string reference to 'system_themes_admin_form'
system_themes_page in drupal/core/modules/system/
Menu callback; displays a listing of all themes.


drupal/core/modules/system/, line 229
Admin page callbacks for the system module.


function system_themes_admin_form($form, &$form_state, $theme_options) {
  // Administration theme settings.
  $form['admin_theme'] = array(
    '#type' => 'details',
    '#title' => t('Administration theme'),
  $form['admin_theme']['admin_theme'] = array(
    '#type' => 'select',
    '#options' => array(0 => t('Default theme')) + $theme_options,
    '#title' => t('Administration theme'),
    '#description' => t('Choose "Default theme" to always use the same theme as the rest of the site.'),
    '#default_value' => config('system.theme')->get('admin'),
  $form['admin_theme']['actions'] = array('#type' => 'actions');
  $form['admin_theme']['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  return $form;