diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-26 06:50:30 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-26 06:50:30 +0300 |
commit | 2c4c05acd61c97f94dc9479169d1a36db1473abf (patch) | |
tree | 4e837991eca457a35f3a7f5a8f07769fa4226661 | |
parent | 39fa71fabac9620ee0b30eea7a57a60d53f49505 (diff) | |
download | local_webhooks-2c4c05acd61c97f94dc9479169d1a36db1473abf.tar.xz local_webhooks-2c4c05acd61c97f94dc9479169d1a36db1473abf.zip |
The form for the security key has been added
-rw-r--r-- | classes/forms.php | 6 |
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")); |