Created
April 23, 2014 13:34
-
-
Save ivandoric/11215395 to your computer and use it in GitHub Desktop.
drupal: Add block to node
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
<?php | |
$block = block_load('module_name', 'block_name'); | |
$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block)))); | |
print $output; | |
//module_name is the name of module that outputs the block, eg. webform | |
//block_name is the name of the block, you can find it out by hovering on configure link on block admin page, eg. client-block-19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment