weekly release 2.3dev
[moodle.git] / lib / db / messages.php
... / ...
CommitLineData
1<?php
2
3// This file is part of Moodle - http://moodle.org/
4//
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17
18/**
19 * Defines message providers (types of messages being sent)
20 *
21 * @package core
22 * @subpackage message
23 * @copyright 2008 onwards Martin Dougiamas http://dougiamas.com
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 */
26
27defined('MOODLE_INTERNAL') || die();
28
29$messageproviders = array (
30
31/// Notices that an admin might be interested in
32 'notices' => array (
33 'capability' => 'moodle/site:config'
34 ),
35
36/// Important errors that an admin ought to know about
37 'errors' => array (
38 'capability' => 'moodle/site:config'
39 ),
40
41 'instantmessage' => array (
42 'defaults' => array(
43 'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
44 'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDOFF,
45 ),
46 ),
47
48 'backup' => array (
49 'capability' => 'moodle/site:config'
50 ),
51
52 //course creation request notification
53 'courserequested' => array (
54 'capability' => 'moodle/site:approvecourse'
55 ),
56
57 //course request approval notification
58 'courserequestapproved' => array (
59 'capability' => 'moodle/course:request'
60 ),
61
62 //course request rejection notification
63 'courserequestrejected' => array (
64 'capability' => 'moodle/course:request'
65 )
66
67);