From bcc234b0a7ab7043938a568f348f10b798425e74 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 26 Nov 2008 05:19:34 +0000 Subject: [PATCH] random question editing: Don't show permission information when editing a random question. It is just confusing. --- question/type/random/questiontype.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5