Delete all quiz attempts by cron job

Delete all quiz attempts by cron job

από Bente Olsen -
Αριθμός απαντήσεων: 3

Is it possible to setup a cron job that deletes all quiz attempts in a course? I have access to cpanel, files and phpMyAdmin on the server. (Moodle 1.9)

Μέσος όρος βαθμολογίας: -
Σε απάντηση σε Bente Olsen

Re: Delete all quiz attempts by cron job

από Tim Hunt -
Φωτογραφία Core developers Φωτογραφία Documentation writers Φωτογραφία Particularly helpful Moodlers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers

You will have to write some PHP code yourself to do this, but it is not too hard. There is a quiz_delete_all_attempts function in mod/quiz/lib.php.

Σε απάντηση σε Tim Hunt

Ang: Re: Delete all quiz attempts by cron job

από Bente Olsen -

Thanks for your answer, it sounds promising though I am not skilled to do that myself.