Created
December 8, 2012 22:48
-
-
Save mynameispj/4242359 to your computer and use it in GitHub Desktop.
Drupal Omega: Print region outside of section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Your region won't be rendered if it doesn't have a zone. There is a work-around for your use-case. All the //regions that are not being printed get placed in $page['#excluded']. You can use hook_page_alter() to move a //region from there to the part of the $page array that gets forwarded to the templates. | |
//source: http://drupal.org/node/1200272 | |
$page['my_new_region'] = $page['#excluded']['my_new_region']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment