function backup_migrate_schedule_delete_schedule in Backup and Migrate 5.2
Delete a saved schedule from the database.
1 call to backup_migrate_schedule_delete_schedule()
- backup_migrate_ui_schedule_delete_confirm_submit in includes/
schedules.inc - Delete a destination after confirmation.
File
- includes/
schedules.inc, line 115 - All of the schedule handling code needed for Backup and Migrate.
Code
function backup_migrate_schedule_delete_schedule($schedule_id) {
$schedule = backup_migrate_get_schedule($schedule_id);
if ($schedule && $schedule['db']) {
db_query("DELETE FROM {backup_migrate_schedules} WHERE schedule_id = %d", $schedule_id);
_backup_migrate_message('Schedule deleted: %schedule', array(
'%schedule' => $schedule['name'],
));
}
}