name)) { $form->name = ""; } if (empty($form->text)) { $form->text = ""; } if (empty($form->format)) { $form->format = ""; } if (empty($form->answer1)) { $form->answer1 = get_string("yes"); } if (empty($form->answer2)) { $form->answer2 = get_string("no"); } if (empty($form->answer3)) { $form->answer3 = ""; } if (empty($form->answer4)) { $form->answer4 = ""; } if (empty($form->answer5)) { $form->answer5 = ""; } if (empty($form->answer6)) { $form->answer6 = ""; } if (empty($form->publish)) { $form->publish = ""; } if ($usehtmleditor = can_use_richtext_editor()) { $defaultformat = FORMAT_HTML; $onsubmit = "onsubmit=\"copyrichtext(document.form.text);\""; } else { $defaultformat = FORMAT_MOODLE; $onsubmit = ""; } ?>