Where to hook in to the course completion event?

Re: Where to hook in to the course completion event?

by Mahtab Hussain -
Number of replies: 0

May you live in peace Aaron!

We are using Moodle 2.3. I have applied a patch for the course completion event in lib/completion/completion_completion.php.

I have developed a custom module, where I created event handler code in events.php. Now, I am to define respective event handler function but I am not aware what data ($eventdata) and its structure I am receiving.

Can you please guide me what is the structure of event data returned by course completion event?

Warm regards,

Mahtab Hussain