You are here

function backup_migrate_restore_confirm_submit in Backup and Migrate 5

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

File

./backup_migrate.module, line 374
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_submit($form_id, $form_values) {
  $path = $form_values['path'];
  if ($path && _backup_migrate_path_is_in_save_dir($path)) {
    _backup_migrate_restore_file($path);
    watchdog('backup_migrate', t('Database restored from %file', array(
      '%file' => $path,
    )));
  }
  return user_access('access backup files') ? "admin/content/backup_migrate/files" : "admin/content/backup_migrate";
}