? 507664-21.patch
Index: quiz.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/quiz/quiz.module,v
retrieving revision 1.138.2.93
diff -u -p -r1.138.2.93 quiz.module
--- quiz.module	6 Jan 2010 10:12:52 -0000	1.138.2.93
+++ quiz.module	6 Jan 2010 11:40:25 -0000
@@ -585,22 +585,33 @@ function quiz_load($node) {
 function quiz_view($node, $teaser = FALSE, $page = FALSE) {
   drupal_alter('quiz_view', $node, $teaser, $page);
   $node = node_prepare($node, $teaser);
-  $node->content['take_button'] = array(
-    '#value' => l(t('Take quiz'), "node/$node->nid/take"),
+  $node->content['take'] = array(
+    '#value' => drupal_get_form('quiz_start_quiz_button_form', $node),
     '#weight' => 1,
   );
   return $node;
 }
 
+function quiz_start_quiz_button_form(&$form_state, $node) {
+  $form = array();
+  $form['#action'] = 'index.php?q=node/'. $node->nid .'/take';
+  $form['button'] = array(
+    '#type' => 'button',
+    '#value' => t('Start quiz'),
+  );
+  return $form;
+}
+
 /**
  * Primary quiz-taking view (on Take tab)
  */
 function quiz_take($node) {
   drupal_alter('quiz_take', $node);
   // load the questions in the view page
-  $node->content['quiz'] = quiz_take_quiz($node);
+  return drupal_render(quiz_take_quiz($node));
+  /*$node->content['quiz'] = quiz_take_quiz($node);  TODO: REMOVE COMPLETELY
   // render into a view
-  return node_view($node);
+  return node_view($node);*/
 }  
 
 // QUIZ FORM
