General developer forum

send modal (alert) reminder to the user after login using calendar.

 
Picture of Márcio Quimbundo
send modal (alert) reminder to the user after login using calendar.
 

Hello,

I need to trigger (reminder ) events after all users login based on calendar.. Then I will write a message output in a modal box.

But I could not find where to add my code to create eventdata objects and trigger the events. I suppose I should add my code after where the code for login or something like this. 

what if i create a listener for the \core\event\user_loggedin event ????

any tips...?


moodle version: 3.1.3

Thanks in advance.


Where do I start..??

 
Average of ratings: -