Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix dangerous comment. (MDL-13536)

  • Loading branch information...
commit cda98581a5d0c2000b6651e633c023bd50a40ea2 1 parent 5e75f98
tjhunt authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 question/type/questiontype.php
View
7 question/type/questiontype.php
@@ -426,8 +426,11 @@ function restore_session_and_responses(&$question, &$state) {
* Question types with only a single form field for the student's response
* which is contained in ->responses[''] will not have to save this response,
* it will already have been saved to the answer field of the question_states table.
- * Question types with more response fields should override this method and save
- * the responses in their own database tables.
+ * Question types with more response fields should override this method to convert
+ * the data the ->responses array into a single string field, and save it in the
+ * database. The implementation in the multichoice question type is a good model to follow.
+ * http://cvs.moodle.org/contrib/plugins/question/type/opaque/questiontype.php?view=markup
+ * has a solution that is probably quite generally applicable.
* @return bool Indicates success or failure.
* @param object $question The question object for the question including
* the question type specific information.
Please sign in to comment.
Something went wrong with that request. Please try again.