Change settings in all existing quizzes

Change settings in all existing quizzes

by Aaron Johnson -
Number of replies: 2

Hi,

I'm in Moodle 3.8 and wondering if there is a way to change the settings for all my existing quizzes without going through them all one by one. I know you can change the default settings for quizzes in the Site administration, but that is only for new quizzes. Is there a way to push those setting preferences to all existing quizzes? For example, I just discovered the enforced delay between attempts option, and want all 100 quizzes currently in my site to implement this. Any ideas?

Thanks,
Aaron

Average of ratings: -
In reply to Aaron Johnson

Re: Change settings in all existing quizzes

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
There is no user-interface for this.

If you have direct access to the database for your Moodle site, and if you don't cosider directly editing the data in the database as being far risky, then you could change the values there. For example

UPDATE mdl_quiz SET delay1 = 3600

(but, if you get this sort of thing wrong, you can break your Moodle site.)
Average of ratings: Useful (2)
In reply to Tim Hunt

Re: Change settings in all existing quizzes

by Aaron Johnson -
Thanks, Tim. That is in line with what I was expecting.