]> git.mjollnir.org Git - moodle.git/commitdiff
Changed applicable_formats to remove certain blocks from the tags pages
authormoodler <moodler>
Fri, 10 Aug 2007 09:33:21 +0000 (09:33 +0000)
committermoodler <moodler>
Fri, 10 Aug 2007 09:33:21 +0000 (09:33 +0000)
blocks/activity_modules/block_activity_modules.php
blocks/blog_tags/block_blog_tags.php
blocks/mentees/block_mentees.php
blocks/mnet_hosts/block_mnet_hosts.php
blocks/moodleblock.class.php
blocks/participants/block_participants.php
blocks/recent_activity/block_recent_activity.php

index d69714d2f1741d574563d56a2089d5bed576836a..5d45a328bafb7b6a7cf8fa3093303801ea444d9a 100644 (file)
@@ -45,7 +45,8 @@ class block_activity_modules extends block_list {
     }
 
     function applicable_formats() {
-        return array('all' => true, 'mod' => false, 'my' => false, 'admin' => false);
+        return array('all' => true, 'mod' => false, 'my' => false, 'admin' => false,
+                     'tag' => false);
     }
 }
 
index c257e104e536c1a24f46bc0b198600497eeb4cab..580cb3f1c3ff19f501f0d9ac61faf813c08e78d7 100644 (file)
@@ -21,7 +21,7 @@ class block_blog_tags extends block_base {
     }
 
     function applicable_formats() {
-        return array('all' => true, 'my' => false);
+        return array('all' => true, 'my' => false, 'tag' => false);
     }
 
     function instance_allow_config() {
index 7ea3e91f9c3514bca8f3a1aca2f64858d7222c6d..6bacac9eb32236910b80b04e2eb0796464290270 100755 (executable)
@@ -8,7 +8,7 @@ class block_mentees extends block_base {
     }
 
     function applicable_formats() {
-        return array('all' => true);
+        return array('all' => true, 'my' =>false, 'tag' => false);
     }
 
     function specialization() {
index 6ddf1e601e705a58c7bc41db1b8e978e234ca813..5968e2aed21c1774729d05defc6b0913b41094c7 100644 (file)
@@ -12,7 +12,7 @@ class block_mnet_hosts extends block_list {
 
     function applicable_formats() {
         if (has_capability('moodle/site:mnetlogintoremote', get_context_instance(CONTEXT_SYSTEM), NULL, false)) {
-            return array('all' => true, 'mod' => false);
+            return array('all' => true, 'mod' => false, 'tag' => false);
         } else {
             return array('site' => true);
         }
index 3b34d4f7f2151928c8a8720a557482c9809a5a6f..a3778c5ca4c6312301735224b6798f1e36c36083 100644 (file)
@@ -485,7 +485,7 @@ class block_base {
      */
     function applicable_formats() {
         // Default case: the block can be used in courses and site index, but not in activities
-        return array('all' => true, 'mod' => false);
+        return array('all' => true, 'mod' => false, 'tag' => false);
     }
     
 
index 98f981f08773cf83f5b117d33523684357c3fb83..16670424d44b2c0a20c67920d5323974367822bd 100644 (file)
@@ -44,9 +44,9 @@ class block_participants extends block_list {
 
     // my moodle can only have SITEID and it's redundant here, so take it away
     function applicable_formats() {
-        return array('all' => true, 'my' => false);
+        return array('all' => true, 'my' => false, 'tag' => false);
     }
 
 }
 
-?>
\ No newline at end of file
+?>
index 06516b359c9413864bb2403ea975d5f79ab88527..d400ac70efdda5d8c1b220db41fd3b4a86bfd745 100644 (file)
@@ -32,7 +32,7 @@ class block_recent_activity extends block_base {
     }
 
     function applicable_formats() {
-        return array('all' => true, 'my' => false);
+        return array('all' => true, 'my' => false, 'tag' => false);
     }
 }
 ?>