Index: moodle/question/format.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/quiz/includes/moodle/question/Attic/format.php,v retrieving revision 1.1.2.1 diff -u -p -r1.1.2.1 format.php --- moodle/question/format.php 9 Jun 2009 19:36:34 -0000 1.1.2.1 +++ moodle/question/format.php 23 Jun 2009 00:15:39 -0000 @@ -674,8 +674,10 @@ class qformat_default { // iterate through questions foreach($questions as $question) { - print "exporting:"; - dprint_r($question); + if (module_exists('devel')) { + print "exporting:"; + dprint_r($question); + } // do not export hidden questions if (!empty($question->hidden)) { Index: questions_import/questions_import.admin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/quiz/includes/questions_import/questions_import.admin.inc,v retrieving revision 1.2.2.6 diff -u -p -r1.2.2.6 questions_import.admin.inc --- questions_import/questions_import.admin.inc 16 Jun 2009 05:29:23 -0000 1.2.2.6 +++ questions_import/questions_import.admin.inc 23 Jun 2009 00:15:39 -0000 @@ -27,7 +27,7 @@ function questions_import_get_sample_fil */ function questions_import_form() { - drupal_set_message(t('We recommand you to take a backup of your database before importing any questions.'), 'warning'); + drupal_set_message(t('We recommend you to take a backup of your database before importing any questions.'), 'warning'); $form['#attributes'] = array('enctype' => 'multipart/form-data'); $form['quiz_import'] = array( '#type' => 'fieldset', @@ -90,10 +90,10 @@ function questions_import_type() { //'moodle_blackboard' => t('Blackboard 6.x (by Moodle)'), //'moodle_examview' => t('ExamView (by Moodle)'), 'moodle_gift' => t('GIFT (by Moodle)'), - //'moodle_hotpot' => t('Hotpotatoes 5.0 and 6.0 (by Moodle)'), + //'moodle_hotpot' => t('Hotpotatoes 6.0 and 6.0 (by Moodle)'), 'moodle_learnwise' => t('Learnwise (by Moodle)'), - //'moodle_webct' => t('WebCT (by Moodle)'), - // HAVE TO FIX WEBCT, HOTPOT, EXAMVIEW, BLACKBOARD + 'moodle_webct' => t('WebCT (by Moodle)'), + // TODO fix HotPotatoes, ExamView and Blackboard ); return $type; } @@ -103,7 +103,7 @@ function questions_import_type() { * Implementation of hook_validate() */ function questions_import_form_validate($form, &$form_state) { - $allowed_extensions = 'csv txt xml jcl'; + $allowed_extensions = 'csv txt xml jcl jqz'; // it suppose to be a string which file extensions separated by space not an array $allowd_size = file_upload_max_size(); @@ -394,7 +394,6 @@ function questions_import_moodle_create_ node_save(questions_import_node_save_static_data($node)); } - /* This function imports questions from Question and Test Interoperability (QTI) format file. * @return * Return the number of questions successfully imported.