How do I identify an individual Quiz with PHP? I'm trying to make a welcome page that indicates which Quizzes a user has taken and passed. Thanks!


phrankle’s picture

For example:

if ($quiz->show_passed && $user->uid && quiz_is_passed($user->uid, $quiz->nid, $quiz->vid)) {
    drupal_set_message(t('You have already passed @quiz.', array('@quiz' => QUIZ_NAME)), 'status');

Where $quiz refers to a particular quiz, say the first one I made.

djdevin’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.