mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-72996 myoverview: Hide the block header on the my courses page
This commit is contained in:
parent
60f0bae098
commit
2e31a1c930
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user