As discusssed in this previous issue: http://drupal.org/node/26995

This will keep multiple choice questions from having the first options selected by default.

Comments

seanbfuller’s picture

Status: Active » Needs review
StatusFileSize
new378 bytes

Simple patch to switch the 'default' => NULL to 'default' => -1

Based on:
First - http://drupal.org/node/84419
Then - http://drupal.org/node/77792

seanbfuller’s picture

Status: Needs review » Needs work

Missed the fact that there is no form validation on the question, meaning a user can get through the whole thing just clicking submit on each screen without checking anything. I'll take another shot.

seanbfuller’s picture

Status: Needs work » Needs review
StatusFileSize
new2.48 KB

Updated version that keeps the question from advancing if no answer was selected.

Note that I had to adjust quiz_take_quiz to check to see if hook_evaluate_question returns null in order to do this.

I also updated the comments for multichoice_evaluate_question to better reflect what it actually does.

nicholasthompson’s picture

Yup - Nikos and I managed to sort this one out on the eurostar. If only we'd had the internet we'd have seen you'd already done it! Buger!

As said in the other issue. We'll take a look at the patches tomorrow, collate all our work together and I'll try to figure out how to commit a new CVS version (or at least an Über patch!)

seanbfuller’s picture

Status: Needs review » Closed (duplicate)