? quiz-222105-1.patch
? quiz-222105.patch
? quiz-489040-4.x.patch
? quiz-526004.patch
? quiz-526062.patch
? quiz.module_0.patch
Index: question_types/matching/matching.classes.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/quiz/question_types/matching/matching.classes.inc,v
retrieving revision 1.2.2.11
diff -u -p -r1.2.2.11 matching.classes.inc
--- question_types/matching/matching.classes.inc	28 Jul 2009 08:51:20 -0000	1.2.2.11
+++ question_types/matching/matching.classes.inc	5 Aug 2009 17:01:00 -0000
@@ -98,7 +98,7 @@ class MatchingQuestion implements QuizQu
         '#options' => $this->customShuffle($select_option),
       );
     }
-    return $this->customShuffle($form);
+    return variable_get('quiz_matching_shuffle_options', TRUE) ? $this->customShuffle($form) : $form;
   }
 
   public function customShuffle($array = array()) {
@@ -141,6 +141,12 @@ class MatchingQuestion implements QuizQu
       '#description' => t('Number of question allowed to wrap under a match type question.'),
       '#default_value' => variable_get('quiz_matching_form_size', 5),
     );
+    $form['matching']['quiz_matching_shuffle_options'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Shuffle Matching Options'),
+      '#default_value' => variable_get('quiz_matching_shuffle_options', TRUE),
+      '#description' => t('If checked matching options will be shuffled'),
+    );
     return system_settings_form($form);
   }
 
Index: question_types/matching/matching.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/quiz/question_types/matching/matching.module,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 matching.module
--- question_types/matching/matching.module	29 Jul 2009 11:40:37 -0000	1.2.2.1
+++ question_types/matching/matching.module	5 Aug 2009 17:01:00 -0000
@@ -99,21 +99,6 @@ function matching_list_questions() {
 }
 */
 
-/**
- * Admin settings form.
- */
-
-function matching_admin_settings_form() {
-  $form['quiz_matching_form_size'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Default Number of Answers'),
-    '#default_value' => variable_get('quiz_matching_form_size', 5),
-    '#description' => t('The default number of answers to display when creating a question. CHOOSING A LESSER VALUE WILL BREAK ALREADY CREATED QUESTIONS.'),
-    '#required' => TRUE,
-  );
-  return system_settings_form($form);
-}
-
 /*
  * @function
  * To generate a list of short answer questions node
