Skip to content

Instantly share code, notes, and snippets.

@mynameispj
Created December 8, 2012 22:48
Show Gist options
  • Save mynameispj/4242359 to your computer and use it in GitHub Desktop.
Save mynameispj/4242359 to your computer and use it in GitHub Desktop.
Drupal Omega: Print region outside of section
//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