Hi everyone,
I am currently trying my hand at writing a plugin, requested by my client, to redirect to an activity if the student passes a quiz (typical branching scenario).
I have successfully enabled the options in the quiz edit screen and my selection is updated in a db table that I created for the plugin.
I have been trying to now get moodle to, once the student passes a quiz (options to redirect set in settings), redirect to the requested activity, but cannot get it to function this way.
I tried a function called end_of_attempt()
but it is not called by moodle. So I am at a loss of how can I get moodle to use my redirect quizaccess rule plugin to do what I want.
Any input or suggestions are welcome.
For information I use Stream theme and my Moodle version is 4.1.15