This could be on a per-quiz basis with a site-wide default. Possibilities mentioned from http://drupal.org/node/85983.


Or, if we dont rename the module as a whole - we could have a config area to name the assessment type? That way the tab can say:

* Take Assessmenet
* Take Quiz
* Take Test
* Take Exam
* Take It Easy
* LETS GO!!!

Either drop down or free entry?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

If we're going to make a setting for this (there's always locale ...) it should be free-entry, not drop-down.

nicholasThompson’s picture

Free entry takes less code too ;-)

rfolk’s picture

Status: Active » Needs review
FileSize
15.33 KB

Attached is a patch that allows the user to replace "take test" or "quiz" with an assessment type that is configured in the quiz settings menu. It is free-entry with a default assessment type value of "quiz". A user now has the ability to refer to assessment types as tests, exams, etc.

Something to note: If "quiz" is directly referring to the quiz module it will not be replaced.

rfolk’s picture

FileSize
18.89 KB

After review, I noticed a few references to "quizzes" that needed to be updated. The most current patch for this issue is attached. Thanks!

webchick’s picture

Status: Needs review » Needs work

First of all, major props for remembering to check_plain stuff on output!

However, that's an awful lot of duplicated code. What if we just did:

$quiz_name = check_plain(variable_get('quiz_name', 'quiz'));

And from then on did %quiz => $quiz_name ?

rfolk’s picture

FileSize
18.29 KB

Thanks webchick! Your right... there was a bit of duplicated code. I've taken your suggestion and built a new patch accordingly.

seanbfuller’s picture

Status: Needs work » Fixed
FileSize
17.45 KB

Committed to HEAD.

Attached is the updated version that was applied to HEAD. Contains several version fixes for the lastest version after http://drupal.org/node/27133 was applied and code moved around.

Anonymous’s picture

Status: Fixed » Closed (fixed)

  • Commit ab0e83f on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x by seanbfuller:
    #88675 Fixes hard-coded quiz name and adds a setting to configure how...

  • Commit ab0e83f on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages by seanbfuller:
    #88675 Fixes hard-coded quiz name and adds a setting to configure how...

  • Commit ab0e83f on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages, 2269219 by seanbfuller:
    #88675 Fixes hard-coded quiz name and adds a setting to configure how...

  • Commit ab0e83f on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, 2269219 by seanbfuller:
    #88675 Fixes hard-coded quiz name and adds a setting to configure how...