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.

CommentFileSizeAuthor
quiz.multichoice.module.patch960 bytesdarktygur-1

Comments

mbutcher’s picture

Issue tags: +gsoc2009

Adding GSOC tag.

sivaji_ganesh_jojodae’s picture

As 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.

sivaji_ganesh_jojodae’s picture

Status: Needs review » Fixed
Issue tags: -gsoc2009 +gsoc2009-sivaji

Thanks Just saw your patch, it makes sense, let me commit it.

Status: Fixed » Closed (fixed)
Issue tags: -gsoc2009-sivaji

Automatically closed -- issue fixed for 2 weeks with no activity.