From: jerome Date: Mon, 19 Oct 2009 15:12:49 +0000 (+0000) Subject: webservice MDL-17135 remove old Moodleforms for service admin page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9199f8d32376e3ec6bb4aa91cb488d42e279ad1d;p=moodle.git webservice MDL-17135 remove old Moodleforms for service admin page --- diff --git a/admin/external_forms.php b/admin/external_forms.php deleted file mode 100644 index d7d29c5aa5..0000000000 --- a/admin/external_forms.php +++ /dev/null @@ -1,56 +0,0 @@ -. - -/** - * Web services admin UI forms - * - * @package webservice - * @copyright 2009 Moodle Pty Ltd (http://moodle.com) - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -require_once $CFG->libdir.'/formslib.php'; - -class external_service_functions_form extends moodleform { - function definition() { - global $CFG, $USER, $DB; - - $mform = $this->_form; - $data = $this->_customdata; - - $mform->addElement('header', 'addfunction', get_string('addfunction', 'webservice')); - - $select = "name NOT IN (SELECT s.functionname - FROM {external_services_functions} s - WHERE s.externalserviceid = :sid - )"; - - $functions = $DB->get_records_select_menu('external_functions', $select, array('sid'=>$data['id']), 'name', 'id, name'); - - $mform->addElement('select', 'fid', get_string('name'), $functions); - - $mform->addElement('hidden', 'id'); - $mform->setType('id', PARAM_INT); - - $mform->addElement('hidden', 'action'); - $mform->setType('action', PARAM_ACTION); - - $this->add_action_buttons(true); - - $this->set_data($data); - } -} diff --git a/admin/external_service.php b/admin/external_service.php index 21f30415d2..5ed89b4b44 100644 --- a/admin/external_service.php +++ b/admin/external_service.php @@ -25,7 +25,6 @@ require_once('../config.php'); require_once($CFG->libdir.'/adminlib.php'); -require_once('external_forms.php'); $id = required_param('id', PARAM_INT); $action = optional_param('action', '', PARAM_ACTION); diff --git a/admin/external_service_functions.php b/admin/external_service_functions.php index 9a9945e28e..7a20b72d53 100644 --- a/admin/external_service_functions.php +++ b/admin/external_service_functions.php @@ -25,7 +25,6 @@ require_once('../config.php'); require_once($CFG->libdir.'/adminlib.php'); -require_once('external_forms.php'); $id = required_param('id', PARAM_INT); $fid = optional_param('fid', 0, PARAM_INT); diff --git a/admin/external_service_users.php b/admin/external_service_users.php index b75daaf60e..17ac875395 100644 --- a/admin/external_service_users.php +++ b/admin/external_service_users.php @@ -25,7 +25,6 @@ require_once('../config.php'); require_once($CFG->libdir.'/adminlib.php'); -require_once('external_forms.php'); require_once($CFG->dirroot.'/admin/webservice/lib.php'); $id = required_param('id', PARAM_INT);