Adding the field 'Content type'
This commit is contained in:
parent
e86542d8f7
commit
ea30d3ca56
@ -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"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user