| 1 | efrain | 1 | <?php
 | 
        
           |  |  | 2 | // This file is part of Moodle - http://moodle.org/
 | 
        
           |  |  | 3 | //
 | 
        
           |  |  | 4 | // Moodle is free software: you can redistribute it and/or modify
 | 
        
           |  |  | 5 | // it under the terms of the GNU General Public License as published by
 | 
        
           |  |  | 6 | // the Free Software Foundation, either version 3 of the License, or
 | 
        
           |  |  | 7 | // (at your option) any later version.
 | 
        
           |  |  | 8 | //
 | 
        
           |  |  | 9 | // Moodle is distributed in the hope that it will be useful,
 | 
        
           |  |  | 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
        
           |  |  | 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
        
           |  |  | 12 | // GNU General Public License for more details.
 | 
        
           |  |  | 13 | //
 | 
        
           |  |  | 14 | // You should have received a copy of the GNU General Public License
 | 
        
           |  |  | 15 | // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 | 
        
           |  |  | 16 |   | 
        
           |  |  | 17 | /**
 | 
        
           |  |  | 18 |  * Defines message providers (types of messages being sent)
 | 
        
           |  |  | 19 |  *
 | 
        
           |  |  | 20 |  * @package mod_assign
 | 
        
           |  |  | 21 |  * @copyright 2012 NetSpot {@link http://www.netspot.com.au}
 | 
        
           |  |  | 22 |  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 | 
        
           |  |  | 23 |  */
 | 
        
           |  |  | 24 |   | 
        
           |  |  | 25 | $messageproviders = array (
 | 
        
           |  |  | 26 |   | 
        
           |  |  | 27 |     // Ordinary assignment submissions.
 | 
        
           |  |  | 28 |     'assign_notification' => [
 | 
        
           |  |  | 29 |         'defaults' => [
 | 
        
           |  |  | 30 |             'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 31 |             'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 32 |         ],
 | 
        
           |  |  | 33 |     ],
 | 
        
           | 1441 | ariadna | 34 |     // Assignments with a due date soon.
 | 
        
           |  |  | 35 |     'assign_due_soon' => [
 | 
        
           |  |  | 36 |         'defaults' => [
 | 
        
           |  |  | 37 |             'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 38 |             'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 39 |             'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 40 |         ],
 | 
        
           |  |  | 41 |     ],
 | 
        
           |  |  | 42 |     // Assignments that are overdue.
 | 
        
           |  |  | 43 |     'assign_overdue' => [
 | 
        
           |  |  | 44 |         'defaults' => [
 | 
        
           |  |  | 45 |             'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 46 |             'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 47 |             'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 48 |         ],
 | 
        
           |  |  | 49 |     ],
 | 
        
           |  |  | 50 |     // Assignments that are due in 7 days.
 | 
        
           |  |  | 51 |     'assign_due_digest' => [
 | 
        
           |  |  | 52 |         'defaults' => [
 | 
        
           |  |  | 53 |             'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 54 |             'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 55 |             'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
 | 
        
           |  |  | 56 |         ],
 | 
        
           |  |  | 57 |     ],
 | 
        
           | 1 | efrain | 58 | );
 |