Say you want to put a Drupal block somewhere and you can’t do it with content regions. Like, in the middle of your content, say. Do this:
$block = module_invoke(‘block’, ‘block’, ‘view’, 1);
print $block[‘content’];
The 1 is the block number.
From here.