From 4c63223050991ef4a2cc18d3d5243a052a7f2b6f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 29 Oct 2017 11:24:15 +0400 Subject: Adding an additional field --- classes/editform.php | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.3