You are here

function backup_migrate_ui_manual_restore_form_submit in Backup and Migrate 6.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. 5.2 backup_migrate.module \backup_migrate_ui_manual_restore_form_submit()
  4. 6.3 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 615
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, &$form_state) {
  if ($file = file_save_upload('backup_migrate_restore_upload')) {
    backup_migrate_include('destinations');
    backup_migrate_perform_restore('upload', $file->filepath, $form_state['values']);
  }
  $form_state['redirect'] = BACKUP_MIGRATE_MENU_PATH . '/restore';
}