General developer forum

Not able to understand certain methods from the moodle quiz module

 
Picture of Mark Johnson
Re: Not able to understand certain methods from the moodle quiz module
Core developersParticularly helpful MoodlersPlugin developers

You wont find a call to quiz_add_instance() specifically in the codebase, but it is being called.  It is a conventionally-named function that all activity module plugins define in lib.php so that Moodle knows where to find it.  You can read more about these functions in the example module documentation on the wiki: https://docs.moodle.org/dev/NEWMODULE_Documentation#lib.php

 
Average of ratings: -