Merge branch 'MDL-28512_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2013-01-22 01:02:34 +01:00
+7
View File
@@ -80,6 +80,13 @@ class qtype_essay extends question_type {
$question->graderinfoformat = $questiondata->options->graderinfoformat;
}
public function delete_question($questionid, $contextid) {
global $DB;
$DB->delete_records('qtype_essay_options', array('questionid' => $questionid));
parent::delete_question($questionid, $contextid);
}
/**
* @return array the different response formats that the question type supports.
* internal name => human-readable name.