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:25:07 +01:00
parent 8533cba2ae
commit ffd413d436
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
@@ -496,6 +496,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
@@ -472,6 +472,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'));
@@ -525,6 +528,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
@@ -263,6 +263,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
@@ -345,6 +345,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
@@ -358,6 +358,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'));