Hi,

I need to add a block in my page.tpl.php files (also in others custom like: page-country.tpl.php).

Is there any way to include the block with a function or something?

Thanks.

Comments

Leech’s picture

Ok, I just found it..


// last parameter is the block id
$block = module_invoke('block', 'block', 'view', 6);
print $block['content'];

Found it here: http://drupal.org/node/26502