You are here

function backup_migrate_restore_fail in Backup and Migrate 7.2

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

Clean up when a restore operation fails.

2 calls to backup_migrate_restore_fail()
backup_migrate_filter_backup_restore::restore in includes/filters.backup_restore.inc
Restore the data from to source specified in the settings.
backup_migrate_perform_restore in ./backup_migrate.module
Restore from a file in the given destination.

File

./backup_migrate.module, line 850
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_restore_fail($message, $params, $settings) {
  backup_migrate_include('files', 'filters');
  _backup_migrate_message($message, $params, 'error');
  backup_migrate_cleanup();
  backup_migrate_filters_invoke_all('restore_fail', $settings, $message, $params);
  return FALSE;
}