MDL-55074 blocks: Remove default blocks from course and site

This commit is contained in:
Damyon Wiese
2016-10-21 12:40:05 +08:00
parent 6afd1c60c0
commit c13115cbfa
5 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -482,7 +482,7 @@ abstract class format_base {
}
$blocknames = array(
BLOCK_POS_LEFT => array(),
BLOCK_POS_RIGHT => array('search_forums', 'news_items', 'calendar_upcoming', 'recent_activity')
BLOCK_POS_RIGHT => array()
);
return $blocknames;
}
+1 -2
View File
@@ -71,8 +71,7 @@ class format_social extends format_base {
public function get_default_blocks() {
return array(
BLOCK_POS_LEFT => array(),
BLOCK_POS_RIGHT => array('search_forums', 'calendar_upcoming', 'social_activities',
'recent_activity', 'course_list')
BLOCK_POS_RIGHT => array()
);
}
+1 -1
View File
@@ -205,7 +205,7 @@ class format_topics extends format_base {
public function get_default_blocks() {
return array(
BLOCK_POS_LEFT => array(),
BLOCK_POS_RIGHT => array('search_forums', 'news_items', 'calendar_upcoming', 'recent_activity')
BLOCK_POS_RIGHT => array()
);
}
+1 -1
View File
@@ -210,7 +210,7 @@ class format_weeks extends format_base {
public function get_default_blocks() {
return array(
BLOCK_POS_LEFT => array(),
BLOCK_POS_RIGHT => array('search_forums', 'news_items', 'calendar_upcoming', 'recent_activity')
BLOCK_POS_RIGHT => array()
);
}
+2 -2
View File
@@ -2256,8 +2256,8 @@ function blocks_get_default_site_course_blocks() {
return blocks_parse_default_blocks_list($CFG->defaultblocks_site);
} else {
return array(
BLOCK_POS_LEFT => array('site_main_menu'),
BLOCK_POS_RIGHT => array('course_summary', 'calendar_month')
BLOCK_POS_LEFT => array(),
BLOCK_POS_RIGHT => array()
);
}
}