Skip to content
Browse files

MDL-34742 - adding ability to move blocks into empty column

  • Loading branch information...
1 parent c92d6f4 commit dbc623c4fc5420dd8a3617d17342bb96eeec766a @matthewdaniel matthewdaniel committed with FMCorz Aug 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/blocklib.php
View
6 lib/blocklib.php
@@ -457,6 +457,12 @@ public function region_completely_docked($region, $output) {
if (!$this->page->theme->enable_dock) {
return false;
}
+
+ // Do not dock the region when the user attemps to move a block.
+ if ($this->movingblock) {
+ return false;
+ }
+
$this->check_is_loaded();
$this->ensure_content_created($region, $output);
foreach($this->visibleblockcontent[$region] as $instance) {

0 comments on commit dbc623c

Please sign in to comment.
Something went wrong with that request. Please try again.