|
| 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 | + * Mobile app areas for Learning map |
| 19 | + * |
| 20 | + * Documentation: {@link https://moodledev.io/general/app/development/plugins-development-guide} |
| 21 | + * |
| 22 | + * @package mod_learningmap |
| 23 | + * @copyright 2025 ISB Bayern |
| 24 | + * @author Stefan Hanauska <stefan.hanauska@csg-in.de> |
| 25 | + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| 26 | + */ |
| 27 | + |
| 28 | +defined('MOODLE_INTERNAL') || die(); |
| 29 | + |
| 30 | +$addons = [ |
| 31 | + 'mod_learningmap' => [ |
| 32 | + 'handlers' => [ |
| 33 | + 'learningmap_view_separate' => [ |
| 34 | + 'delegate' => 'CoreCourseModuleDelegate', |
| 35 | + 'method' => 'mobile_learningmap_view', |
| 36 | + 'displaydata' => [ |
| 37 | + 'icon' => $CFG->wwwroot . '/mod/learningmap/pix/icon.svg', |
| 38 | + 'class' => '', |
| 39 | + ], |
| 40 | + 'styles' => [ |
| 41 | + 'url' => $CFG->wwwroot . '/mod/learningmap/styles.css', |
| 42 | + ], |
| 43 | + ], |
| 44 | + 'learningmap_view_embedded' => [ |
| 45 | + 'delegate' => 'CoreCourseModuleDelegate', |
| 46 | + 'method' => 'mobile_learningmap_view', |
| 47 | + 'displaydata' => [ |
| 48 | + 'icon' => $CFG->wwwroot . '/mod/learningmap/pix/icon.svg', |
| 49 | + 'class' => '', |
| 50 | + ], |
| 51 | + 'styles' => [ |
| 52 | + 'url' => $CFG->wwwroot . '/mod/learningmap/styles.css', |
| 53 | + ], |
| 54 | + ], |
| 55 | + ], |
| 56 | + 'lang' => [ |
| 57 | + ['pluginname', 'mod_learningmap'], |
| 58 | + ], |
| 59 | + ], |
| 60 | + ]; |
0 commit comments