]> git.mjollnir.org Git - moodle.git/commitdiff
random question editing: Don't show permission information when editing a random...
authortjhunt <tjhunt>
Wed, 26 Nov 2008 05:19:34 +0000 (05:19 +0000)
committertjhunt <tjhunt>
Wed, 26 Nov 2008 05:19:34 +0000 (05:19 +0000)
question/type/random/questiontype.php

index a7c979604e5d17a768f4381eb4e64b74f7911884..19d862e7862f53432e11365c2bda7a98f6ad8450 100644 (file)
@@ -30,6 +30,12 @@ class random_qtype extends default_questiontype {
         return false;
     }
 
+    function display_question_editing_page(&$mform, $question, $wizardnow){
+        list($heading, $langmodule) = $this->get_heading(empty($question->id));
+        print_heading_with_help($heading, $this->name(), $langmodule);
+        $mform->display();
+    }
+
     function get_question_options(&$question) {
         // Don't do anything here, because the random question has no options.
         // Everything is handled by the create- or restore_session_and_responses