You are here

function backup_migrate_destination_get_files in Backup and Migrate 5.2

Get a list of the backup files in the given destination.

2 calls to backup_migrate_destination_get_files()
backup_migrate_ui_destination_display_files in includes/destinations.inc
List the backup files in the given destination.
_backup_migrate_schedule_remove_expired_backups in includes/schedules.inc
Remove older backups keeping only the number specified by the aministrator.

File

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

Code

function backup_migrate_destination_get_files($destination) {
  if ($destination) {

    // Include the necessary file if specified by the download type.
    if (!empty($destination['file'])) {
      require_once './' . $destination['file'];
    }

    // Call the specified download callback.
    if (!empty($destination['list_callback'])) {
      return $destination['list_callback']($destination);
    }
  }
  return array();
}