update_manager_update_ready_form

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

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, gives them the opportunity to put the site offline, and then asks 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.

Related topics

1 string reference to 'update_manager_update_ready_form'

File

modules/update/update.manager.inc, line 365
Administrative screens and processing functions for the update manager. This allows site administrators with the 'administer software updates' permission to either upgrade existing projects, or download and install new ones, so long as the…

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;
}
Login or register to post comments