Adding the field 'Content type'

This commit is contained in:
Valentin Popov 2017-10-26 09:35:56 +04:00
parent e86542d8f7
commit ea30d3ca56

View File

@ -93,6 +93,13 @@ class service_edit_form extends moodleform {
array("size" => 60)); array("size" => 60));
$mform->setType("token", PARAM_NOTAGS); $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 */ /* Form heading */
$mform->addElement("header", "editserviceheaderevent", $mform->addElement("header", "editserviceheaderevent",
new lang_string("edulevel", "moodle")); new lang_string("edulevel", "moodle"));