return $results;
}
+ /**
+ * Create all the bock instances for all the blocks that were loaded by
+ * load_blocks. This is used, for example, to ensure that all blocks get a
+ * chance to initialise themselves via the {@link block_base::specialize()}
+ * method, before any output is done.
+ */
+ public function create_all_block_instances() {
+ foreach ($this->get_regions() as $region) {
+ $this->ensure_instances_exist($region);
+ }
+ }
+
/**
* Return an array of content vars from a set of block instances
*
$this->_block_actions_done = true;
redirect($this->url->out(false, array(), false));
}
+ $this->blocks->create_all_block_instances();
}
// If maintenance mode is on, change the page header.