function backup_db_history_delete in Backup Database 8
Delete history entry.
1 call to backup_db_history_delete()
- BackupDatabaseHistoryForm::submitForm in src/
Form/ BackupDatabaseHistoryForm.php - Form submission handler.
File
- ./
backup_db.module, line 38 - backup_db.module
Code
function backup_db_history_delete($id) {
// Remove backup_db entry.
// @todo, use injected db service.
db_delete('backup_db')
->condition('fid', $id)
->execute();
// Remove file and managed entry.
return file_delete($id);
}