diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-26 08:35:56 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-26 08:35:56 +0300 |
commit | ea30d3ca566dd8cbb746a962b9a71587fd1acb5d (patch) | |
tree | 2fa9e207c137940da5a5c9d2579f3f39cd0facec /classes/forms.php | |
parent | e86542d8f786771c6713a15fb845987c9aebbfac (diff) | |
download | local_webhooks-ea30d3ca566dd8cbb746a962b9a71587fd1acb5d.tar.xz local_webhooks-ea30d3ca566dd8cbb746a962b9a71587fd1acb5d.zip |
Adding the field 'Content type'
Diffstat (limited to 'classes/forms.php')
-rw-r--r-- | classes/forms.php | 7 |
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")); |