History | Log In     View a printable version of the current page.  
We are currently focused especially on Moodle 2.0, Moodle 1.9.x bugs and Moodle 1.9.x testing.    Confused? Lost? Please read this introduction to the Tracker.
Issue Details (XML | Word | Printable)

Key: MDL-10108
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Martin Dougiamas
Reporter: Luis Rodrigues
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Moodle
MDL-10107

New Module Hook

Created: 13/Jun/07 05:18 AM   Updated: 18/Jun/07 11:54 AM
Component/s: Messages
Affects Version/s: 1.9
Fix Version/s: 1.9

Participants: Luis Rodrigues and Martin Dougiamas
Security Level: None


 Description  « Hide
Create a new module hook with is called when a module is installed. This is to be used to register a module as message provider in the new messaging system.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas - 18/Jun/07 11:54 AM
I've added this hook to the install process (for activity modules).

If the modules define a function named xxxxxx_install where xxxxx is the name of the module then it will be called during the installation of the module.

To cope with sites that are upgrading, you should also register the module as a messaging provider in db/upgrade.php for each module.