From: tjhunt Date: Wed, 26 Nov 2008 05:19:34 +0000 (+0000) Subject: random question editing: Don't show permission information when editing a random... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bcc234b0a7ab7043938a568f348f10b798425e74;p=moodle.git random question editing: Don't show permission information when editing a random question. It is just confusing. --- diff --git a/question/type/random/questiontype.php b/question/type/random/questiontype.php index a7c979604e..19d862e786 100644 --- a/question/type/random/questiontype.php +++ b/question/type/random/questiontype.php @@ -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