Actually, we coded a plugin that meets this requirement at the OU, but we did not need to alter any core code to do it. We did it as a report plug-in. We have not released this plug-in to the community yet, but we probably could if anyone was interested. Our plugin does not just work for quizzes. It works for all activities in the course.