]> git.mjollnir.org Git - moodle.git/commitdiff
Allow quiz_results in quiz pages and allow multiple instances too
authordefacer <defacer>
Tue, 1 Feb 2005 10:03:21 +0000 (10:03 +0000)
committerdefacer <defacer>
Tue, 1 Feb 2005 10:03:21 +0000 (10:03 +0000)
(this obviously is only useful in courses).

blocks/quiz_results/block_quiz_results.php

index af7035cbfd126549cc52d5c6140ce10e1aa1e0e5..d5f1d0b2c64a92d4d920d15abd5977619aa74ba1 100644 (file)
@@ -11,6 +11,10 @@ class block_quiz_results extends block_base {
         $this->version = 2005012600;
     }
 
+    function applicable_formats() {
+        return array('all' => true);
+    }
+
     function get_content() {
         global $USER, $CFG;
 
@@ -333,7 +337,7 @@ class block_quiz_results extends block_base {
         return $this->content;
     }
 
-    function instance_allow_config() {
+    function instance_allow_multiple() {
         return true;
     }
 }