Closed (fixed)
Project:
Quiz
Version:
6.x-4.x-dev
Component:
Code - Quiz module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
3 Jul 2009 at 18:21 UTC
Updated:
3 Aug 2009 at 15:30 UTC
Somewhat along the lines of http://drupal.org/node/508744 ...
Currently the truefalse question type is integrated into the quiz_question module code and directory. In trying to understand how quiz_question works, it's difficult to identity what is essential to quiz_question and what is part of truefalse.
Let this issue serve to track the progress of refactoring truefalse out of quiz_question. (mbutcher confirmed on IRC this is a good move.)
Comments
Comment #1
sivaji_ganesh_jojodae commentedA new truefalse module has been written. Please update your working copy. You may have to clear cache to flush autoload caching.
Following changes has been made while writing this module
1.question_types/quiz_question/quiz_question.truefalse.inc has been removed
2. A new directory truefalse under question_type which following files has been created
truefalse.classes.inc truefalse.install truefalse.theme.inc truefalse.info truefalse.module3. quiz_question_schema has been changed to truefalse_schema so you are likely to get this error message when you install this module.
It breaks the already existing truefalse questions. It is expected to make the quiz upgrade little painful. Any suggestions to fix this will be greatly appreciated.
Comment #2
sivaji_ganesh_jojodae commentedThis module goes into quiz 4.x.
Comment #3
turadg commentedNice work.
To avoid breaking the earlier TF, you can add code to the install hook that looks for the earlier T/F questions and answers in the older tables and moves their data over to the new TF tables.
Comment #4
sivaji_ganesh_jojodae commentedOkay i have changed hooks_install as follow
Before
Now
Comment #5
sivaji_ganesh_jojodae commentedmarking it as fixed. Feel free to open it again if required.