blocks MDL-24066 Blocks can now choose to be hideable + navigation and settings are no longer hideable.

This commit is contained in:
Sam Hemelryk
2010-09-14 02:12:41 +00:00
parent 2695338993
commit d8ef60bd72
8 changed files with 139 additions and 4 deletions
+10
View File
@@ -85,6 +85,16 @@ class block_navigation extends block_base {
return true;
}
/**
* The navigation block cannot be hidden by default as it is integral to
* the navigation of Moodle.
*
* @return false
*/
function instance_can_be_hidden() {
return false;
}
function instance_can_be_docked() {
return (parent::instance_can_be_docked() && (empty($this->config->enabledock) || $this->config->enabledock=='yes'));
}