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!

Comments

For example:

<?php
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.