You are here

function backup_migrate_ui_manual_restore_form_submit in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.2 backup_migrate.module \backup_migrate_ui_manual_restore_form_submit()
  2. 8.3 backup_migrate.module \backup_migrate_ui_manual_restore_form_submit()
  3. 6.3 backup_migrate.module \backup_migrate_ui_manual_restore_form_submit()
  4. 6.2 backup_migrate.module \backup_migrate_ui_manual_restore_form_submit()
  5. 7.3 backup_migrate.module \backup_migrate_ui_manual_restore_form_submit()
  6. 7.2 backup_migrate.module \backup_migrate_ui_manual_restore_form_submit()

The restore submit. Do the restore.

File

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

Code

function backup_migrate_ui_manual_restore_form_submit($form_id, $form_values) {
  if ($file = file_check_upload('backup_migrate_restore_upload')) {
    require_once './' . drupal_get_path('module', 'backup_migrate') . '/includes/destinations.inc';
    backup_migrate_perform_restore('upload', $file->filepath);
  }
  return 'admin/content/backup_migrate/restore';
}