aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-29 10:24:15 +0300
committerValentin Popov <info@valentineus.link>2017-10-29 10:24:15 +0300
commit4c63223050991ef4a2cc18d3d5243a052a7f2b6f (patch)
tree2eb09503d92df3e3600be2c3faaced6e4487513b /classes
parent41a1acc36bdcb9c7ff79880505e76f5afac011fc (diff)
downloadlocal_webhooks-4c63223050991ef4a2cc18d3d5243a052a7f2b6f.tar.xz
local_webhooks-4c63223050991ef4a2cc18d3d5243a052a7f2b6f.zip
Adding an additional field
Diffstat (limited to 'classes')
-rw-r--r--classes/editform.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/editform.php b/classes/editform.php
index 89786bf..ef61f52 100644
--- a/classes/editform.php
+++ b/classes/editform.php
@@ -89,6 +89,11 @@ class service_edit_form extends moodleform {
$mform->addElement("text", "token", new lang_string("token", "webservice"), $size);
$mform->setType("token", PARAM_NOTAGS);
+ /* Additional information */
+ $mform->addElement("text", "other", new lang_string("courserequestsupport", "moodle"), $size);
+ $mform->setType("other", PARAM_NOTAGS);
+ $mform->setAdvanced("other");
+
/* Content type */
$contenttype = array("json" => "application/json", "x-www-form-urlencoded" => "application/x-www-form-urlencoded");
$mform->addElement("select", "type", "Content type", $contenttype);