forked from silecs/moodle-local-resourcenotif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
25 lines (21 loc) · 961 Bytes
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* @package local_resourcenotif
* @copyright 2012-2021 Silecs {@link http://www.silecs.info/societe}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/* @var $ADMIN admin_root */
defined('MOODLE_INTERNAL') || die;
if (has_capability('moodle/site:config', context_system::instance())) {
$settings = new admin_settingpage('local_resourcenotif', get_string('pluginname', 'local_resourcenotif'));
$ADMIN->add('localplugins', $settings);
$defaultmsg = '[[sender]] would like to draw your attention to the activity/resource '
. '[[linkactivity]] available within the course [[linkcourse]].';
$description = get_string('descriptionmsg', 'local_resourcenotif');
$message = new admin_setting_configtextarea('message_body',
get_string('body', 'local_resourcenotif'),
$description,
$defaultmsg);
$message->plugin = 'local_resourcenotif';
$settings->add($message);
}