Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of eMailTest plugin for Moodle - https://moodle.org/
3
//
4
// eMailTest 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
// eMailTest 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 eMailTest.  If not, see <https://www.gnu.org/licenses/>.
16
 
17
/**
18
 * Adds eMail Test link to the Site Administration > Server menu. There are no settings for this plugin.
19
 *
20
 * @package    local_mailtest
21
 * @copyright  2015-2024 TNG Consulting Inc. - www.tngconsulting.ca
22
 * @author     Michael Milette
23
 * @license    https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
25
 
26
defined('MOODLE_INTERNAL') || die;
27
 
28
if ($hassiteconfig) {
29
    if (!isset($CFG->branch) || $CFG->branch >= 32) { // Moodle 3.2 and later.
30
        $section = 'email';
31
    } else { // Up to and including Moodle 3.1.
32
        $section = 'server';
33
    }
34
    $ADMIN->add($section, new admin_externalpage('local_mailtest',
35
            get_string('pluginname', 'local_mailtest'),
36
            new moodle_url('/local/mailtest/')
37
    ));
38
}