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 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 mobile handlers.
19
 *
20
 * @package   mod_customcert
21
 * @copyright 2018 Mark Nelson <markn@moodle.com>
22
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
24
 
25
defined('MOODLE_INTERNAL') || die();
26
 
27
$addons = [
28
    'mod_customcert' => [ // Plugin identifier.
29
        'handlers' => [ // Different places where the plugin will display content.
30
            'issueview' => [ // Handler unique name.
31
                'displaydata' => [
32
                    'icon' => $CFG->wwwroot . '/mod/customcert/pix/icon.png',
33
                    'class' => 'core-course-module-customcert-handler',
34
                ],
35
                'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the plugin).
36
                'method' => 'mobile_view_activity', // Main function in \mod_customcert\output\mobile.
37
                'styles' => [
38
                    'url' => '/mod/customcert/mobile/styles.css',
39
                    'version' => 1,
40
                ],
41
            ],
42
        ],
43
        'lang' => [ // Language strings that are used in all the handlers.
44
            ['deleteissueconfirm', 'customcert'],
45
            ['getcustomcert', 'customcert'],
46
            ['listofissues', 'customcert'],
47
            ['nothingtodisplay', 'moodle'],
48
            ['notissued', 'customcert'],
49
            ['pluginname', 'customcert'],
50
            ['receiveddate', 'customcert'],
51
            ['requiredtimenotmet', 'customcert'],
52
            ['selectagroup', 'moodle'],
53
        ],
54
    ],
55
];