1 installer.manager.inc | installer_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
installer_manager_update_ready_form_submit()
Related topics
File
- core/
modules/ installer/ installer.manager.inc, line 403 - Administrative screens and processing functions of the Installer module.
Code
function installer_manager_update_ready_form($form, &$form_state) {
if (!_installer_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('https://backdropcms.org/backups'))),
'#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;
}