[AMOS commit] MDL-27171 messages: implement new syntax in messages.php and update processing Committed into Git: 2011-05-20 14:10 UTC

[AMOS commit] MDL-27171 messages: implement new syntax in messages.php and update processing Committed into Git: 2011-05-20 14:10 UTC

by AMOS bot -
Number of replies: 0
Author: Ruslan Kabalin
MDL-27171 messages: implement new syntax in messages.php and update processing
The new messaging default settings can be set in messages.php and deployed
during installation. This also ensures the removing of settings on plugin
uninstallation and contains the update script to populate current default
settings on the existing system when the new feature is introduced.

For security reason we have to avoid using library functions in upgrade
function, so we set defaults the blind way. At this point we do not expect
plugins to have individual messaging defaults presets anyway. The site
defaults are the same as were set for each user using
message_set_default_message_preferences function.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>


http://git.moodle.org/gw?p=moodle.git;a=commit;h=7a04c476a2e7f69a1e3193d163598ff0d8d0be6c
http://github.com/moodle/moodle/commit/7a04c476a2e7f69a1e3193d163598ff0d8d0be6c