From: nicolasconnault Date: Tue, 5 Feb 2008 10:30:27 +0000 (+0000) Subject: MDL-12888 Removing redundant form X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b6fc06b6a48d91293d1a70197b679d9d76a04d32;p=moodle.git MDL-12888 Removing redundant form --- diff --git a/course/category_add_form.php b/course/category_add_form.php deleted file mode 100755 index b9715f3097..0000000000 --- a/course/category_add_form.php +++ /dev/null @@ -1,37 +0,0 @@ -dirroot.'/course/moodleform_mod.php'); -class category_add_form extends moodleform { - - // form definition - function definition() { - $mform =& $this->_form; - $mform->addElement('header', 'general', get_string('addnewcategory')); // TODO: localize - $mform->addElement('text', 'addcategory', get_string('categoryname'), array('size'=>'30')); - $mform->addRule('addcategory', get_string('required'), 'required', null); - $mform->addElement('htmleditor', 'description', get_string('description')); - $mform->setType('description', PARAM_RAW); - $mform->setHelpButton('description', array('writing', 'richtext'), false, 'editorhelpbutton'); - - $this->add_action_buttons(false, get_string('submit')); - } -} - -class sub_category_add_form extends moodleform { - - // form definition - function definition() { - $mform =& $this->_form; - $mform->addElement('header', 'general', get_string('addsubcategory')); // TODO: localize - $mform->addElement('text', 'addcategory', get_string('categoryname'), array('size'=>'30')); - $mform->addRule('addcategory', get_string('required'), 'required', null); - $mform->addElement('htmleditor', 'description', get_string('description')); - $mform->setType('description', PARAM_RAW); - $mform->addElement('hidden', 'id'); - $mform->setType('id', PARAM_INT); - $mform->setHelpButton('description', array('writing', 'richtext'), false, 'editorhelpbutton'); - - $this->add_action_buttons(false, get_string('submit')); - } -} -?> \ No newline at end of file