MDL-55074 blocks: Remove default blocks from course and site
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user