You are here

function backup_migrate_ui_destination_download_file in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.inc \backup_migrate_ui_destination_download_file()
  2. 5.2 includes/destinations.inc \backup_migrate_ui_destination_download_file()
  3. 6.3 includes/destinations.inc \backup_migrate_ui_destination_download_file()
  4. 6.2 includes/destinations.inc \backup_migrate_ui_destination_download_file()
  5. 7.3 includes/destinations.inc \backup_migrate_ui_destination_download_file()
  6. 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_destination::get_menu_items in includes/destinations.inc
Add the menu items specific to the destination type.

File

includes/destinations.inc, line 335

Code

function backup_migrate_ui_destination_download_file($destination_id = NULL, $file_id = NULL) {
  if ($file = backup_migrate_destination_get_file($destination_id, $file_id)) {
    backup_migrate_include('files');
    $file
      ->transfer();
  }
  drupal_goto(BACKUP_MIGRATE_MENU_PATH);
}