You are here

function upgrade_status_core_version_form in Upgrade Status 7

Same name and namespace in other branches
  1. 5 upgrade_status.admin.inc \upgrade_status_core_version_form()
  2. 6 upgrade_status.module \upgrade_status_core_version_form()

Form to display Drupal core version selection.

1 string reference to 'upgrade_status_core_version_form'
theme_upgrade_status_report in ./upgrade_status.report.inc
Returns HTML for the project status report.

File

./upgrade_status.module, line 977
Checks to see if your installed modules are available for the next major release of Drupal.

Code

function upgrade_status_core_version_form($form, &$form_state) {
  $form['upgrade_status_core_version'] = array(
    '#type' => 'select',
    '#title' => t('Target version of Drupal core'),
    '#options' => drupal_map_assoc(array(
      '7.x',
      '8.x',
    )),
    '#default_value' => variable_get('upgrade_status_core_version', UPGRADE_STATUS_CORE_VERSION),
    '#description' => t('Select the version of Drupal core you wish to check for project status.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Change'),
  );
  return $form;
}