Dear moodle community,
we have a moodle course which is created as full online lecture (at the end students will receive a grade without having seen a teacher).
Problem: If students do not pass the exam, they are allowed to redo the course completely. Unfortunately, all activities has saved the "old" data of the students, so they cannot redo the course. Resetting the course is not possible, since all others should not lose their activity data.
So, I've looked up the ../course/reset.php which calls "reset_course_userdata()" in ../lib/moodlelib.php where all the magic happens.
Question: Is there a possibility of adding user-dependencies in reset_course_userdata() easily? So remove grades etc. only for a single student?
I just do not want to reinvent the wheel .