function update_manager_update_ready_form

7.x update.manager.inc update_manager_update_ready_form($form, &$form_state)

Form constructor for the update ready form.

Build the form when the site is ready to update (after downloading).

This form is an intermediary step in the automated update workflow. It is presented to the site administrator after all the required updates have been downloaded and verified. The point of this page is to encourage the user to backup their site, give them the opportunity to put the site offline, and then ask them to confirm that the update should continue. After this step, the user is redirected to authorize.php to enter their file transfer credentials and attempt to complete the update.

See also

update_manager_update_ready_form_submit()

update_menu()

Related topics

1 string reference to 'update_manager_update_ready_form'
update_menu in drupal-7.x/modules/update/update.module
Implements hook_menu().

File

drupal-7.x/modules/update/update.manager.inc, line 382
Administrative screens and processing functions of the Update Manager module.

Code

function update_manager_update_ready_form($form, &$form_state) {
  if (!_update_manager_check_backends($form, 'update')) {
    return $form;
  }

  $form['backup'] = array(
    '#prefix' => '<strong>',
    '#markup' => t('Back up your database and site before you continue. <a href="@backup_url">Learn how</a>.', array('@backup_url' => url('http://drupal.org/node/22281'))),
    '#suffix' => '</strong>',
  );

  $form['maintenance_mode'] = array(
    '#title' => t('Perform updates with site in maintenance mode (strongly recommended)'),
    '#type' => 'checkbox',
    '#default_value' => TRUE,
  );

  $form['actions'] = array('#type' => 'actions');
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Continue'),
  );

  return $form;
}