Changed applicable_formats to remove certain blocks from the tags pages

This commit is contained in:
moodler
2007-08-10 09:33:21 +00:00
parent 53a16616b8
commit 9591bc3c9e
7 changed files with 9 additions and 8 deletions
@@ -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);
}
}
+1 -1
View 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() {
+1 -1
View File
@@ -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() {
+1 -1
View 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);
}
+1 -1
View 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);
}
+2 -2
View 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);
}
}
?>
?>
@@ -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);
}
}
?>