Adding an additional field

This commit is contained in:
Valentin Popov 2017-10-29 11:24:15 +04:00
parent 41a1acc36b
commit 4c63223050

View File

@ -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);