weekly release 2.3dev
[moodle.git] / lib / db / messages.php
CommitLineData
117bd748 1<?php
120b3758 2
5b4a78e2
PS
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/>.
120b3758 17
5b4a78e2
PS
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();
120b3758 28
29$messageproviders = array (
30
31/// Notices that an admin might be interested in
6f5e0852 32 'notices' => array (
120b3758 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'
17da2e6f 39 ),
120b3758 40
17da2e6f 41 'instantmessage' => array (
7a04c476
RK
42 'defaults' => array(
43 'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
44 'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDOFF,
45 ),
17da2e6f 46 ),
6f5e0852 47
bac233d3
SH
48 'backup' => array (
49 'capability' => 'moodle/site:config'
a1708181 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'
bac233d3
SH
65 )
66
120b3758 67);