MDL-41511 blocks: improved how custom block regions were being rendered.
authorSam Hemelryk <sam@moodle.com>
Sun, 23 Feb 2014 21:38:17 +0000 (10:38 +1300)
committerSam Hemelryk <sam@moodle.com>
Sun, 6 Apr 2014 03:17:47 +0000 (15:17 +1200)
commit225c418fd2d9bc7661a43c292198bab8c5dc209a
tree43c7de8eb7679327ba42d9290bd0d665aa4f5077
parent1a727e121ef94ae80dd2a8a13f49049d3bc25ef3
MDL-41511 blocks: improved how custom block regions were being rendered.

There is a new theme property 'blockrendermethod' that can be set by the
theme in its config.php and tells Moodle what method it is using to render
blocks in the layout files.
Either blocks, or blocks_for_region.
Then when adding custom block regions to a page content we ensure we use
the same method the theme is using elsewhere.

This is really a hack becuase we (I) didn't properly deprecate
blocks_for_region when I added the blocks method.
lib/outputlib.php
lib/outputrenderers.php
lib/yui/build/moodle-core-blocks/moodle-core-blocks-debug.js
lib/yui/build/moodle-core-blocks/moodle-core-blocks-min.js
lib/yui/build/moodle-core-blocks/moodle-core-blocks.js
lib/yui/src/blocks/js/blocks.js
my/index.php
my/indexsys.php
theme/base/config.php
user/profile.php
user/profilesys.php