function backup_migrate_ui_destination_delete_file_confirm_submit in Backup and Migrate 5.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
- 8.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
- 6.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
- 6.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
- 7.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
- 7.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
Delete confirmed, perform the delete.
File
- includes/
destinations.inc, line 577 - All of the destination handling code needed for Backup and Migrate.
Code
function backup_migrate_ui_destination_delete_file_confirm_submit($form_id, $form_values) {
if (user_access('delete backup files')) {
$destination_id = $form_values['destination_id'];
$file_id = $form_values['file_id'];
backup_migrate_destination_delete_file($destination_id, $file_id);
_backup_migrate_message('Database backup file deleted: %file_id', array(
'%file_id' => $file_id,
));
}
return user_access('access backup files') ? "admin/content/backup_migrate/files" : "admin/content/backup_migrate";
}