MDL-72996 myoverview: Hide the block header on the my courses page

This commit is contained in:
Mathew May 2021-11-19 11:39:19 +08:00
parent 60f0bae098
commit 2e31a1c930

View File

@ -126,5 +126,18 @@ class block_myoverview extends block_base {
return false;
}
}
/**
* Hide the block header on the my courses page.
*
* @return boolean
*/
public function hide_header() {
if ($this->page->blocks->is_known_region(BLOCK_POS_LEFT) || $this->page->blocks->is_known_region(BLOCK_POS_RIGHT)) {
return false;
} else {
return true;
}
}
}