I've been customizing the question import module so that it could import questions using a much more flexible csv format (allowing more possible answers, multiple correct answers, etc). I ran into a problem importing questions that should have a question_status of QUESTION_RANDOM rather than QUESTION_ALWAYS. It just wouldn't take. I've modified a line in the multichoice_insert function in the multichoice.module file so that it'll actually respect any question_status member (if it exists) of the node object it gets.
| Comment | File | Size | Author |
|---|---|---|---|
| quiz.multichoice.module.patch | 960 bytes | darktygur-1 |
Comments
Comment #1
mbutcher commentedAdding GSOC tag.
Comment #2
sivaji_ganesh_jojodae commentedAs far the questions import module is concerned questions status is QUESTION_ALWAYS, if you want to change it edit the function questions_import_node_save_static_data in questions_import.admin.inc or uses quiz "Manage Questions" Interface.
Comment #3
sivaji_ganesh_jojodae commentedThanks Just saw your patch, it makes sense, let me commit it.