|
|
| Participants: |
Luis Rodrigues and Martin Dougiamas
|
| Security Level: |
None
|
| Resolved date: |
18/Jun/07
|
| Affected Branches: |
MOODLE_19_STABLE
|
| Fixed Branches: |
MOODLE_19_STABLE
|
|
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.
|
|
Description
|
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. |
Show » |
made changes - 18/Jun/07 11:54 AM
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Fix Version/s
|
|
1.9
[ 10190
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
moodler committed 1 file to 'Moodle CVS' - 18/Jun/07 11:59 AM
Added an install hook ... any function called modulename_install() will be run when the module is installed
MDL-10108
|
|
|
|
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.