Adding an additional field
This commit is contained in:
parent
41a1acc36b
commit
4c63223050
@ -89,6 +89,11 @@ class service_edit_form extends moodleform {
|
|||||||
$mform->addElement("text", "token", new lang_string("token", "webservice"), $size);
|
$mform->addElement("text", "token", new lang_string("token", "webservice"), $size);
|
||||||
$mform->setType("token", PARAM_NOTAGS);
|
$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 */
|
/* Content type */
|
||||||
$contenttype = array("json" => "application/json", "x-www-form-urlencoded" => "application/x-www-form-urlencoded");
|
$contenttype = array("json" => "application/json", "x-www-form-urlencoded" => "application/x-www-form-urlencoded");
|
||||||
$mform->addElement("select", "type", "Content type", $contenttype);
|
$mform->addElement("select", "type", "Content type", $contenttype);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user