Quantcast
Channel: embed
Viewing all articles
Browse latest Browse all 3

Display Drupal block anywhere

$
0
0

Ever wanted to show a Drupal block anywhere in your theme? Use the following code snippet, take note that you will need the module of the block and its delta.

// Load the block region based on module and delta key.
$_your_block = _block_get_renderable_array(_block_render_blocks(array(block_load('MODULE', 'DELTA'))));

// Now we display it.
print render($_your_block);


Viewing all articles
Browse latest Browse all 3

Trending Articles