You are here

function backup_migrate_destination_get_file in Backup and Migrate 6.3

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

Load a file from a destination and return the file info.

3 calls to backup_migrate_destination_get_file()
backup_migrate_drush_restore in includes/backup_migrate.drush.inc
Restore to the default database.
backup_migrate_perform_restore in ./backup_migrate.module
Restore from a file in the given destination.
backup_migrate_ui_destination_download_file in includes/destinations.inc
Download a file to the browser.

File

includes/destinations.inc, line 174

Code

function backup_migrate_destination_get_file($destination_id, $file_id) {
  if ($destination = backup_migrate_get_destination($destination_id)) {
    return $destination
      ->load_file($file_id);
  }
  return NULL;
}