1 restore.php | restore_info_page() |
Provides an overview of the backup restoration process.
This page provides cautionary statements before proceeding with a restore.
Return value
string: Rendered HTML form.
File
- core/
restore.php, line 40 - Administrative page for restoring backup database and configuration files.
Code
function restore_info_page() {
restore_task_list('info');
backdrop_set_title('Restore site backup');
$token = settings_get('restore_free_access') ? '1' : backdrop_get_token('restore');
$output = '<p>' . st('Use this utility to restore your site\'s database and configuration to a previous version.') . '</p>';
$output .= '<p>' . st('For more detailed information, see the Backdrop CMS <a href="!url">documentation on restoring backups</a>.', array(
'!url' => 'https://docs.backdropcms.org/documentation/restoring-backups',
)) . '</p>';
$form_action = check_url(backdrop_current_script_url(array(
'op' => 'select',
'token' => $token,
)));
$output .= '<form method="post" action="' . $form_action . '">
<div class="form-actions">
<input type="submit" value="Continue" class="form-submit button-primary" />
<a href="' . base_path() . '">Cancel</a>
</div>
</form>';
$output .= "\n";
return $output;
}