-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php
More file actions
21 lines (18 loc) · 810 Bytes
/
Copy pathsettings.php
File metadata and controls
21 lines (18 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
// Admin settings: where to notify ProfFaith on assignment activity, and the
// shared secret used to HMAC-sign those webhook calls.
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
$settings = new admin_settingpage('local_proffaith', get_string('pluginname', 'local_proffaith'));
$ADMIN->add('localplugins', $settings);
$settings->add(new admin_setting_configtext(
'local_proffaith/webhook_url',
get_string('webhook_url', 'local_proffaith'),
get_string('webhook_url_desc', 'local_proffaith'),
'', PARAM_URL));
$settings->add(new admin_setting_configpasswordunmask(
'local_proffaith/webhook_secret',
get_string('webhook_secret', 'local_proffaith'),
get_string('webhook_secret_desc', 'local_proffaith'),
''));
}