Development:Messaging
From MoodleDocs
The Messageing API is a new core system in Moodle to allow communication of messages to users. It's based on the events system, so a module will trigger an event with the attached message data and the message output processor will try to deliver the message to the correct place.
Overview
Files to Create
/db/messages.php (list the types of providers) /lang/XX/messages/providercomponent_providername.html (documentation) ...