MDL-29807 Service add admin page: should be able to enter the unique shortname of...
authorJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 5 Mar 2014 09:21:40 +0000 (10:21 +0100)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Mon, 17 Mar 2014 08:53:45 +0000 (09:53 +0100)
admin/webservice/forms.php

index dea693b..0b4ff5d 100644 (file)
@@ -66,6 +66,10 @@ class external_service_form extends moodleform {
         $mform->addElement('text', 'name', get_string('name'));
         $mform->addRule('name', get_string('required'), 'required', null, 'client');
         $mform->setType('name', PARAM_TEXT);
+
+        $mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="255" size="20"');
+        $mform->setType('shortname', PARAM_TEXT);
+
         $mform->addElement('advcheckbox', 'enabled', get_string('enabled', 'webservice'));
         $mform->setType('enabled', PARAM_BOOL);
         $mform->addElement('advcheckbox', 'restrictedusers',