You are here

function upgrade_assist_maintenance_theme in Upgrade Status 6

Form constructor to configure maintenance_theme.

File

upgrade_assist/upgrade_assist.module, line 434
Assists in upgrading Drupal.

Code

function upgrade_assist_maintenance_theme() {
  drupal_set_title(t('Verify maintenance theme'));
  $options = array();
  foreach (list_themes() as $name => $theme) {
    $options[$name] = $theme->info['name'];
  }
  $form['maintenance_theme'] = array(
    '#type' => 'select',
    '#title' => t('Maintenance theme'),
    '#options' => $options,
    '#default_value' => variable_get('maintenance_theme', NULL),
  );
  return system_settings_form($form);
}