mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 02:49:53 +01:00
get_question_options() function now adds subquestions to $question object.
This commit is contained in:
parent
52da922267
commit
d8bb6c3587
@ -12,6 +12,8 @@ class quiz_match_qtype extends quiz_default_questiontype {
|
||||
}
|
||||
|
||||
function get_question_options(&$question) {
|
||||
$subquestions = get_records("quiz_match_sub", "question", $question->id, "id ASC" );
|
||||
$question->options->subquestions = $subquestions;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user