You are here

function backup_migrate_delete_confirm_submit in Backup and Migrate 5

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

File

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