how to get drupal block contents(using coding)
We can display any Drupal block anywhere in the website using the code given below.
<?php
$block = module_invoke( [module name], 'block', 'view', [block id] );
print $block['content'];?>
<?php
$block = module_invoke( [module name], 'block', 'view', [block id] );
print $block['content'];?>
Comments