Changed applicable_formats to remove certain blocks from the tags pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user