You are here

function backup_migrate_restore_confirm in Backup and Migrate 5

Same name and namespace in other branches
  1. 6 backup_migrate.module \backup_migrate_restore_confirm()

Ask confirmation for file restore.

1 string reference to 'backup_migrate_restore_confirm'
_backup_migrate_restore_from_server in ./backup_migrate.module
Restore a backup file (from the server).

File

./backup_migrate.module, line 369
Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (f.e. cache_*)

Code

function backup_migrate_restore_confirm($path) {
  $form['path'] = array(
    '#type' => 'value',
    '#value' => $path,
  );
  return confirm_form($form, t('Are you sure you want to restore the database from the backup at %path?', array(
    '%path' => $path,
  )), 'admin/content/backup_migrate/files', t('This will delete some or all of your data and cannot be undone. <strong>Always test your backups on a non-production server!</strong>'), t('Restore'), t('Cancel'));
}