You are here

function _backup_migrate_delete in Backup and Migrate 5

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

Menu callback. Delete a previous backup.

1 string reference to '_backup_migrate_delete'
backup_migrate_menu in ./backup_migrate.module
Implementation of hook_menu().

File

./backup_migrate.module, line 174
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() {

  // Merge remainder of arguments from GET['q'], into relative file path.
  $args = func_get_args();
  $path = implode('/', $args);
  if ($path && _backup_migrate_path_is_in_save_dir($path)) {
    return drupal_get_form('backup_migrate_delete_confirm', $path);
  }
  return user_access('access backup files') ? "admin/content/backup_migrate/files" : "admin/content/backup_migrate";
}