$gradeoptions = $creategrades->gradeoptions;
$gradeoptionsfull = $creategrades->gradeoptionsfull;
- if (!$categories = question_category_menu($course->id, false)) {
- error("No categories!");
- }
-
-
- // Print the question editing form
-
+ // Initialise defaults if necessary.
if (empty($question->id)) {
$question->id = "";
}
$question->generalfeedback = "";
}
- // Set up some Richtext editing if necessary
+ // Set up some richtext editing if necessary
if ($usehtmleditor = can_use_richtext_editor()) {
$defaultformat = FORMAT_HTML;
} else {
$err = $question->errors;
}
+ // Print the question editing form
echo '<br />';
print_simple_box_start('center');
require_once('type/'.$qtype.'/editquestion.php');