-
Notifications
You must be signed in to change notification settings - Fork 10
/
settings.php
64 lines (48 loc) · 2.01 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* This file adds the settings pages to the navigation menu
*
* @package mod_wwassignment
* @copyright
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
//require_once($CFG->dirroot.'/mod/wwassignment/lib.php');
// Messages d'erreur
//global $CFG;
$ADMIN->add('modsettings', new admin_category('modwwassignmentfolder', new lang_string('pluginname', 'mod_wwassignment'), $module->is_enabled() === false));
$settings = new admin_settingpage($section, get_string('pluginadministration', 'mod_wwassignment'), 'moodle/site:config', $module->is_enabled() === false);
if ($ADMIN->fulltree) {
$settings->add(new admin_setting_configtext('wwassignment_webworkurl',
get_string('webwork_url', 'wwassignment'),
get_string('webwork_url_desc', 'wwassignment'),
'https://test.edu/webwork2',
PARAM_URL
));
$settings->add(new admin_setting_configtext('wwassignment_rpc_wsdl',
get_string('rpc_wsdl', 'wwassignment'),
get_string('rpc_wsdl_desc', 'wwassignment'),
'https://test.edu/webwork2_wsdl',
PARAM_URL
));
$settings->add(new admin_setting_configtext('wwassignment_rpc_key',
get_string('rpc_key', 'wwassignment'),
get_string('rpc_key_desc', 'wwassignment'),
'123456789123456789',
PARAM_ALPHANUMEXT
));
$settings->add(new admin_setting_configtext('wwassignment_iframewidth',
get_string('iframe_width', 'wwassignment'),
get_string('iframe_width_desc', 'wwassignment'),
'95%',
PARAM_RAW_TRIMMED
));
$settings->add(new admin_setting_configtext('wwassignment_iframeheight',
get_string('iframe_height', 'wwassignment'),
get_string('iframe_height_desc', 'wwassignment'),
'500px',
PARAM_RAW_TRIMMED
));
$settings->add(new admin_setting_configcheckbox('wwassignment/requiremodintro',
get_string('requiremodintro', 'admin'), get_string('requiremodintro_desc', 'admin'), 0));
}