function backup_migrate_destination_delete_destination in Backup and Migrate 5.2
Delete a destination from the database.
1 call to backup_migrate_destination_delete_destination()
- backup_migrate_ui_destination_delete_confirm_submit in includes/
destinations.inc - Delete a destination after confirmation.
File
- includes/
destinations.inc, line 314 - All of the destination handling code needed for Backup and Migrate.
Code
function backup_migrate_destination_delete_destination($destination_id) {
$destination = backup_migrate_get_destination($destination_id);
if ($destination && $destination['db']) {
db_query("DELETE FROM {backup_migrate_destinations} WHERE destination_id = %d", $destination_id);
_backup_migrate_message('Backup destination deleted: %dest', array(
'%dest' => $destination['name'],
));
}
}