diff --git a/question/type/random/editquestion.html b/question/type/random/editquestion.html deleted file mode 100644 index 1c131f84d1e..00000000000 --- a/question/type/random/editquestion.html +++ /dev/null @@ -1,37 +0,0 @@ -
-
- - - - - - - - - - - - - - - - -
: - id, true, true, $question->category); ?> -
: - " /> - -
: - questiontext)) { - $question->questiontext = "0"; - } ?> - - questiontext == "1") ? 'checked="checked"' : '' ?> /> -
- - - - -" /> -
-
diff --git a/question/type/random/editquestion.php b/question/type/random/editquestion.php deleted file mode 100644 index b3a01cd9076..00000000000 --- a/question/type/random/editquestion.php +++ /dev/null @@ -1,9 +0,0 @@ -name)) { - $question->name = get_string("random", "quiz"); - } - - print_heading_with_help(get_string("editingrandom", "quiz"), "random", "quiz"); - require("$CFG->dirroot/question/type/random/editquestion.html"); -?> diff --git a/question/type/shortanswer/editquestion.html b/question/type/shortanswer/editquestion.html deleted file mode 100644 index 1e1acb49f7a..00000000000 --- a/question/type/shortanswer/editquestion.html +++ /dev/null @@ -1,61 +0,0 @@ -qtype]->print_question_form_start($question, array(), $course, $usehtmleditor); -?> - - : - - usecase", ""); - ?> - - - - : - -
- -
- - - - - : - - answer === '') { - $answertext = ''; - $fractionval = 0; - $feedbacktext = ''; - } else { - $answertext = $answers[$i-1]->answer; - $fractionval = $answers[$i-1]->fraction; - $feedbacktext = $answers[$i-1]->feedback; - } - ?> - " />   - -
- - - - : - - - - - -   - -qtype]->print_replacement_options($question, $course, $contextquiz); -$QTYPES[$question->qtype]->print_question_form_end($question); -?> diff --git a/question/type/shortanswer/editquestion.php b/question/type/shortanswer/editquestion.php deleted file mode 100644 index 95804027914..00000000000 --- a/question/type/shortanswer/editquestion.php +++ /dev/null @@ -1,29 +0,0 @@ -id)) { - $options = get_record("question_shortanswer", "question", $question->id); - } else { - $options->usecase = 0; - } - if (!empty($options->answers)) { - $answersraw = get_records_list('question_answers', 'id', $options->answers, 'id ASC'); - } - - $answers = array(); - if (!empty($answersraw)) { - foreach ($answersraw as $answer) { - $answers[] = $answer; // insert answers into slots - } - } - - $emptyanswer->answer = ''; - $i = count($answers); - $limit = QUESTION_NUMANS; - $limit = $limit <= $i ? $i+1 : $limit; - for (; $i < $limit; $i++) { - $answers[] = $emptyanswer; // Make answer slots, default as blank - } - - print_heading_with_help(get_string("editingshortanswer", "quiz"), "shortanswer", "quiz"); - require("$CFG->dirroot/question/type/shortanswer/editquestion.html"); - -?>