I have created a local plugin to use event API. Available events are worked for me. I need to create a custom event which trigger when a quiz is created in the moodle. I am new to moodle and didn't understand where should I write the code for triggering event.
The have complete the following steps
- Created a local plugin
- created db/events.php
- created classes/observer.php
- created classes/event/quiz_created.php
- updated version.php with my plugin name.
Anybody please help