Display block content by module
PLEASE NOTE! The following snippets are user submitted. Use at your own risk! For users who have setup drupal using an alternate database to the default (MYSQL), please note that the snippets may contain some database queries specific to MYSQL.
This code will let you display the block content produced by a module wherever you like. It has been tested with front_page module and in custom blocks. It should work in themes as well.
<?php
$module = 'aggregator';
$delta = 'category:1';
$content = module_invoke($module, 'block', 'display', $delta);
print $content['content'];
?>The key paramaters are the "$module" and "$delta" that tell the code which module to pull the block content from. If you look in your database at the table called, "blocks" you can find the correct module name and "delta" setting. If you are trying to print aggregator content, notice that you should specify which category, i.e. "category:1". See http://drupal.org/node/18272 for an example.
