From ea30d3ca566dd8cbb746a962b9a71587fd1acb5d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 09:35:56 +0400 Subject: Adding the field 'Content type' --- classes/forms.php | 7 +++++++ 1 file changed, 7 insertions(+) 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")); -- cgit v1.2.3