/ Published in: PHP
Enables the usage off regions in node.tpl
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function themename_preprocess_node(&$variables) { // Get a list of all the regions for this theme foreach (system_region_list($GLOBALS['theme']) as $region_key => $region_name) { // Get the content for each region and add it to the $region variable if ($blocks = block_get_blocks_by_region($region_key)) { $variables['region'][$region_key] = $blocks; } else { } } }