I'm sure this has been discussed already in this Quiz forum or the tracker but cannot find references, so here we go...
I was expecting that the new question engine (moodle 2.1) would have made provision in the multianswer question type for any question type to choose to be "embedded".
At the moment, only those three "legacy" question types are recognized by question/multianswer/questiontype.php:
public function requires_qtypes() {
return array('shortanswer', 'numerical', 'multichoice');
}
... which means that my REGEXP question type, based on shortanswer, is not recognized by and cannot be embedded in a Cloze/multianswer question. I have to resort to providing a question/multianswer/questiontype.php replacement file, which of course I would like to avoid.
What I would like instead is for each question type to kind of declare itself "multianswer compatible". Something like:
public function is_usable_by_multianswer() {
return false/true;
}
Tim, any thoughts about this?
Joseph