diff --git a/core/modules/block/block.install b/core/modules/block/block.install new file mode 100644 index 0000000..63b3784 --- /dev/null +++ b/core/modules/block/block.install @@ -0,0 +1,25 @@ +getStorage('block') + ->loadByProperties(['region' => -1]); + + // Disable each block and assign them to the default region. + foreach ($blocks as $block) { + $block + ->disable() + ->setRegion(system_default_region($block->getTheme())) + ->save(); + } +}