forked from sevenseas-gists/moodle-mod_ratingallocate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
29 lines (27 loc) · 1.05 KB
/
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
26
27
28
29
<?php
/**
* Admin settings for mod_ratingallocate
*
* @package mod_ratingallocate
* @copyright 2015 Tobias Reischmann
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
$settings->add(new admin_setting_configtext('ratingallocate_algorithm_timeout', get_string('algorithmtimeout', 'ratingallocate'),
get_string('configalgorithmtimeout', 'ratingallocate'), 600, PARAM_INT));
$settings->add(new admin_setting_configmulticheckbox('ratingallocate_download_userfields',
new lang_string('downloaduserfields', 'ratingallocate'),
new lang_string('configdownloaduserfields', 'ratingallocate'),
[
'id' => 1,
'username' => 1,
'email' => 1
],
[
'id' => new lang_string('userid', 'ratingallocate'),
'username' => new lang_string('username'),
'idnumber' => new lang_string('idnumber'),
'email' => new lang_string('email'),
]));
}