From 9591bc3c9ee7d8b7cdc350ba58adfe714ab3573b Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 10 Aug 2007 09:33:21 +0000 Subject: [PATCH] Changed applicable_formats to remove certain blocks from the tags pages --- blocks/activity_modules/block_activity_modules.php | 3 ++- blocks/blog_tags/block_blog_tags.php | 2 +- blocks/mentees/block_mentees.php | 2 +- blocks/mnet_hosts/block_mnet_hosts.php | 2 +- blocks/moodleblock.class.php | 2 +- blocks/participants/block_participants.php | 4 ++-- blocks/recent_activity/block_recent_activity.php | 2 +- 7 files changed, 9 insertions(+), 8 deletions(-) diff --git a/blocks/activity_modules/block_activity_modules.php b/blocks/activity_modules/block_activity_modules.php index d69714d2f1..5d45a328ba 100644 --- a/blocks/activity_modules/block_activity_modules.php +++ b/blocks/activity_modules/block_activity_modules.php @@ -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); } } diff --git a/blocks/blog_tags/block_blog_tags.php b/blocks/blog_tags/block_blog_tags.php index c257e104e5..580cb3f1c3 100644 --- a/blocks/blog_tags/block_blog_tags.php +++ b/blocks/blog_tags/block_blog_tags.php @@ -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() { diff --git a/blocks/mentees/block_mentees.php b/blocks/mentees/block_mentees.php index 7ea3e91f9c..6bacac9eb3 100755 --- a/blocks/mentees/block_mentees.php +++ b/blocks/mentees/block_mentees.php @@ -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() { diff --git a/blocks/mnet_hosts/block_mnet_hosts.php b/blocks/mnet_hosts/block_mnet_hosts.php index 6ddf1e601e..5968e2aed2 100644 --- a/blocks/mnet_hosts/block_mnet_hosts.php +++ b/blocks/mnet_hosts/block_mnet_hosts.php @@ -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); } diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 3b34d4f7f2..a3778c5ca4 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -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); } diff --git a/blocks/participants/block_participants.php b/blocks/participants/block_participants.php index 98f981f087..16670424d4 100644 --- a/blocks/participants/block_participants.php +++ b/blocks/participants/block_participants.php @@ -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 +?> diff --git a/blocks/recent_activity/block_recent_activity.php b/blocks/recent_activity/block_recent_activity.php index 06516b359c..d400ac70ef 100644 --- a/blocks/recent_activity/block_recent_activity.php +++ b/blocks/recent_activity/block_recent_activity.php @@ -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); } } ?> -- 2.39.5