Moodle - Access URL Parameters

Moodle - Access URL Parameters

by Eduardo Valenzuela Ordinola -
Number of replies: 1

Hi Guys,

I need to save some information after a user has completed an activity. I found an event: 

\core\event\course_module_completion_updated
Is this the proper event for this case?


Also I was wondering if there is a way to access the url parameters from the page where the event was triggered?, I was checking the code and I see an object called context, maybe there is a way to access them through it?


Thanks in advance for your help.




Average of ratings: -
In reply to Eduardo Valenzuela Ordinola

Re: Moodle - Access URL Parameters

by Jean-Roch Meurisse -
Picture of Core developers Picture of Plugin developers Picture of Testers

That's right (you can check that in the logs), but make sure that activity completion is enabled in the course

Cheers