function backup_migrate_ui_destination_download_file in Backup and Migrate 5.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_ui_destination_download_file()
- 8.3 includes/destinations.inc \backup_migrate_ui_destination_download_file()
- 6.3 includes/destinations.inc \backup_migrate_ui_destination_download_file()
- 6.2 includes/destinations.inc \backup_migrate_ui_destination_download_file()
- 7.3 includes/destinations.inc \backup_migrate_ui_destination_download_file()
- 7.2 includes/destinations.inc \backup_migrate_ui_destination_download_file()
Download a file to the browser.
1 string reference to 'backup_migrate_ui_destination_download_file'
- backup_migrate_menu in ./
backup_migrate.module - Implementation of hook_menu().
File
- includes/
destinations.inc, line 517 - All of the destination handling code needed for Backup and Migrate.
Code
function backup_migrate_ui_destination_download_file($destination_id, $file_id) {
if ($info = backup_migrate_destination_get_file($destination_id, $file_id)) {
require_once './' . drupal_get_path('module', 'backup_migrate') . '/includes/files.inc';
backup_migrate_file_transfer($info);
}
}