function backup_migrate_destination_confirm_destination in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/destinations.inc \backup_migrate_destination_confirm_destination()
- 7.3 includes/destinations.inc \backup_migrate_destination_confirm_destination()
Send a file to the destination specified by the settings array.
1 call to backup_migrate_destination_confirm_destination()
- backup_migrate_perform_backup in ./
backup_migrate.module - Perform a backup with the given settings.
File
- includes/
destinations.inc, line 194
Code
function backup_migrate_destination_confirm_destination(&$settings) {
if ($destinations = $settings
->get_destinations()) {
foreach ($destinations as $key => $destination) {
// Check that the destination is ready to go.
if (!$destination
->confirm_destination()) {
unset($destinations[$key]);
}
}
}
$settings->destinations = $destinations;
return count($destinations);
}