summaryrefslogtreecommitdiff
path: root/classes/forms.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-26 06:50:30 +0300
committerValentin Popov <info@valentineus.link>2017-10-26 06:50:30 +0300
commit2c4c05acd61c97f94dc9479169d1a36db1473abf (patch)
tree4e837991eca457a35f3a7f5a8f07769fa4226661 /classes/forms.php
parent39fa71fabac9620ee0b30eea7a57a60d53f49505 (diff)
downloadlocal_webhooks-2c4c05acd61c97f94dc9479169d1a36db1473abf.tar.xz
local_webhooks-2c4c05acd61c97f94dc9479169d1a36db1473abf.zip
The form for the security key has been added
Diffstat (limited to 'classes/forms.php')
-rw-r--r--classes/forms.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/forms.php b/classes/forms.php
index d6402cc..9a7d6a1 100644
--- a/classes/forms.php
+++ b/classes/forms.php
@@ -87,6 +87,12 @@ class service_edit_form extends moodleform {
$mform->setDefault("enable", 1);
$mform->setAdvanced("enable");
+ /* Token */
+ $mform->addElement("text", "token",
+ new lang_string("token", "webservice"),
+ array("size" => 60));
+ $mform->setType("token", PARAM_NOTAGS);
+
/* Form heading */
$mform->addElement("header", "editserviceheaderevent",
new lang_string("edulevel", "moodle"));