Drupal Block Region in Node Template

If you want to display a block region in a specific node template, simply add the following:

<?php
$myregion = block_get_blocks_by_region('myregion');
print render($myregion);
?>

 

Leave a comment

Your email address will not be published. Required fields are marked *