mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
get_question_options() function now adds subquestions to $question object.
This commit is contained in:
parent
52da922267
commit
d8bb6c3587
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ class quiz_match_qtype extends quiz_default_questiontype {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_question_options(&$question) {
|
function get_question_options(&$question) {
|
||||||
|
$subquestions = get_records("quiz_match_sub", "question", $question->id, "id ASC" );
|
||||||
|
$question->options->subquestions = $subquestions;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue