Show block content inside custom node template I've created a custom template (node--&lt;mytype&gt;.tpl.php), and I'd like to display the calendars from the Availability Calendars module. I don't understand how to load them.
I've tried with this code, but it doesn't work.
$block = module_invoke('availability_calendar', 'block_view');

Can you help me?
First, you have to make your block available inside your node.tpl.php, so edit template.php and add the following:

function YOURTHEME_preprocess_node($variables) {
  $YOURBLOCK = block_load('MODULENAME', 'BLOCKDELTA');
  $variables['YOURBLOCK'] = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));
}


Then, on your node.tpl.php you can print $YOURBLOCK; anywhere you want.

And yes, you have to call two "private" functions from block module, see http://api.drupal.org/api/drupal/includes%21module.inc/function/module_invoke/7#comment-15884