diff options
-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")); |