/** * The block should only be dockable when the title of the block is not empty * and when parent allows docking. * * @return bool */ public function instance_can_be_docked() { return !empty($this->config->title) && parent::instance_can_be_docked(); }
/** * Find out if an instance can be docked. * * @return bool true or false depending on whether the instance can be docked or not. */ function instance_can_be_docked() { return parent::instance_can_be_docked() && (empty($this->config->enabledock) || $this->config->enabledock == 'yes'); }
function instance_can_be_docked() { return (!empty($this->title) && parent::instance_can_be_docked()); //return (parent::instance_can_be_docked() && (empty($this->config->enabledock) || $this->config->enabledock=='yes')); }