Changed the default default blocks so that calendar block is not shown
(for CPU issues) and upcoming_events is now shown on the right between news and recent activity The default blocks can be overridden by a setting in config.php $CFG->defaultblocks See: http://moodle.org/mod/forum/discuss.php?d=7784&parent=39296
This commit is contained in:
+11
-1
@@ -708,7 +708,17 @@ function block_get_name_by_id ($blockid) {
|
||||
//will be converted to their blockids equivalent. If a course is specified
|
||||
//then the function will update the field too!
|
||||
|
||||
function blocks_get_default_blocks ($courseid = NULL, $blocknames="participants,activity_modules,calendar_month,calendar_upcoming,search_forums,admin,course_list:news_items,recent_activity") {
|
||||
function blocks_get_default_blocks ($courseid = NULL, $blocknames="") {
|
||||
|
||||
global $CFG;
|
||||
|
||||
if (empty($blocknames)) {
|
||||
if (!empty($CFG->defaultblocks)) {
|
||||
$blocknames = $CFG->defaultblocks;
|
||||
} else {
|
||||
$blocknames = "participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity";
|
||||
}
|
||||
}
|
||||
|
||||
//Calculate left and right blocks
|
||||
$blocksn = $blocknames;
|
||||
|
||||
Reference in New Issue
Block a user