You are here

function backup_migrate_ui_destination_delete_file in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file()
  2. 8.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file()
  3. 6.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file()
  4. 6.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file()
  5. 7.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file()
  6. 7.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file()

Menu callback to delete a file from a destination.

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

File

includes/destinations.inc, line 558
All of the destination handling code needed for Backup and Migrate.

Code

function backup_migrate_ui_destination_delete_file($destination_id, $file_id) {
  if ($file = backup_migrate_destination_get_file($destination_id, $file_id)) {
    return drupal_get_form('backup_migrate_ui_destination_delete_file_confirm', $destination_id, $file_id);
  }
  drupal_goto("admin/content/backup_migrate");
}