MDL-39262 mod_lesson: disable shortforms in lesson question display

Conflicts:
	mod/lesson/pagetypes/shortanswer.php
This commit is contained in:
Jean-Michel Vedrine
2015-03-08 11:20:22 +01:00
parent f4dc567e79
commit a4ff234c80
6 changed files with 21 additions and 0 deletions
+3
View File
@@ -279,6 +279,9 @@ class lesson_display_answer_form_essay extends moodleform {
}
}
// Disable shortforms.
$mform->setDisableShortforms();
$mform->addElement('header', 'pageheader');
$mform->addElement('html', $OUTPUT->container($contents, 'contents'));
+3
View File
@@ -518,6 +518,9 @@ class lesson_display_answer_form_matching extends moodleform {
$lessonid = $this->_customdata['lessonid'];
$contents = $this->_customdata['contents'];
// Disable shortforms.
$mform->setDisableShortforms();
$mform->addElement('header', 'pageheader');
$mform->addElement('html', $OUTPUT->container($contents, 'contents'));
+6
View File
@@ -476,6 +476,9 @@ class lesson_display_answer_form_multichoice_singleanswer extends moodleform {
$attempt->answerid = null;
}
// Disable shortforms.
$mform->setDisableShortforms();
$mform->addElement('header', 'pageheader');
$mform->addElement('html', $OUTPUT->container($contents, 'contents'));
@@ -529,6 +532,9 @@ class lesson_display_answer_form_multichoice_multianswer extends moodleform {
$lessonid = $this->_customdata['lessonid'];
$contents = $this->_customdata['contents'];
// Disable shortforms.
$mform->setDisableShortforms();
$mform->addElement('header', 'pageheader');
$mform->addElement('html', $OUTPUT->container($contents, 'contents'));
+3
View File
@@ -264,6 +264,9 @@ class lesson_display_answer_form_numerical extends moodleform {
$mform = $this->_form;
$contents = $this->_customdata['contents'];
// Disable shortforms.
$mform->setDisableShortforms();
$mform->addElement('header', 'pageheader');
$mform->addElement('html', $OUTPUT->container($contents, 'contents'));
+3
View File
@@ -350,6 +350,9 @@ class lesson_display_answer_form_shortanswer extends moodleform {
}
}
// Disable shortforms.
$mform->setDisableShortforms();
$mform->addElement('header', 'pageheader');
$mform->addElement('html', $OUTPUT->container($contents, 'contents'));
+3
View File
@@ -367,6 +367,9 @@ class lesson_display_answer_form_truefalse extends moodleform {
$attempt->answerid = null;
}
// Disable shortforms.
$mform->setDisableShortforms();
$mform->addElement('header', 'pageheader');
$mform->addElement('html', $OUTPUT->container($contents, 'contents'));