-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php
More file actions
29 lines (24 loc) · 768 Bytes
/
settings.php
File metadata and controls
29 lines (24 loc) · 768 Bytes
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
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
$settings = new admin_settingpage('local_heartbeat', get_string('pluginname', 'local_heartbeat'));
$settings->add(
new admin_setting_configtext(
'local_heartbeat/keepaliveurl',
get_string('keepaliveurl', 'local_heartbeat'),
get_string('keepaliveurl_desc', 'local_heartbeat'),
'',
PARAM_URL
)
);
$settings->add(
new admin_setting_configtext(
'local_heartbeat/interval',
get_string('interval', 'local_heartbeat'),
get_string('interval_desc', 'local_heartbeat'),
600,
PARAM_INT
)
);
$ADMIN->add('localplugins', $settings);
}