From 2e69d93048e37fb409f600bb37a0798619831a71 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 14 Jul 2010 16:47:54 +0000 Subject: [PATCH] MDL-16094 temporary workaround for removed textformat field --- question/type/edit_question_form.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index 704a5ff1b78..1ef242374a1 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -106,10 +106,13 @@ class question_edit_form extends moodleform { $mform->setType('name', PARAM_TEXT); $mform->addRule('name', null, 'required', null, 'client'); + //TODO: MDL-16094 convert to new editor element $mform->addElement('htmleditor', 'questiontext', get_string('questiontext', 'quiz'), array('rows' => 15, 'course' => $this->coursefilesid)); $mform->setType('questiontext', PARAM_RAW); - $mform->addElement('format', 'questiontextformat', get_string('format')); + //$mform->addElement('format', 'questiontextformat', get_string('format')); + $mform->addElement('hidden', 'questiontextformat'); + $mform->setType('questiontextformat', PARAM_INT); make_upload_directory($this->coursefilesid); // Just in case $coursefiles = get_directory_list("$CFG->dataroot/$this->coursefilesid", $CFG->moddata);