summaryrefslogtreecommitdiff
path: root/classes/forms.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-26 08:35:56 +0300
committerValentin Popov <info@valentineus.link>2017-10-26 08:35:56 +0300
commitea30d3ca566dd8cbb746a962b9a71587fd1acb5d (patch)
tree2fa9e207c137940da5a5c9d2579f3f39cd0facec /classes/forms.php
parente86542d8f786771c6713a15fb845987c9aebbfac (diff)
downloadlocal_webhooks-ea30d3ca566dd8cbb746a962b9a71587fd1acb5d.tar.xz
local_webhooks-ea30d3ca566dd8cbb746a962b9a71587fd1acb5d.zip
Adding the field 'Content type'
Diffstat (limited to 'classes/forms.php')
-rw-r--r--classes/forms.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/forms.php b/classes/forms.php
index 30c405a..e0267ce 100644
--- a/classes/forms.php
+++ b/classes/forms.php
@@ -93,6 +93,13 @@ class service_edit_form extends moodleform {
array("size" => 60));
$mform->setType("token", PARAM_NOTAGS);
+ /* Content type */
+ $mform->addElement("select", "type", "Content type",
+ array(
+ "json" => "application/json",
+ "x-www-form-urlencoded" => "application/x-www-form-urlencoded"));
+ $mform->setAdvanced("type");
+
/* Form heading */
$mform->addElement("header", "editserviceheaderevent",
new lang_string("edulevel", "moodle"));