. /** * Defines message providers (types of messages being sent) * * @package core * @subpackage message * @copyright 2008 onwards Martin Dougiamas http://dougiamas.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $messageproviders = array ( /// Notices that an admin might be interested in 'notices' => array ( 'capability' => 'moodle/site:config' ), /// Important errors that an admin ought to know about 'errors' => array ( 'capability' => 'moodle/site:config' ), 'instantmessage' => array ( 'defaults' => array( 'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF, 'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDOFF, ), ), 'backup' => array ( 'capability' => 'moodle/site:config' ), //course creation request notification 'courserequested' => array ( 'capability' => 'moodle/site:approvecourse' ), //course request approval notification 'courserequestapproved' => array ( 'capability' => 'moodle/course:request' ), //course request rejection notification 'courserequestrejected' => array ( 'capability' => 'moodle/course:request' ) );