Apparently $delta is not always a number
Last modified: January 15, 2009 - 21:28
I tried to use this php code to show the feed-content of an aggregator feed on a page. It turned up to work out this way:
<?php
$block = module_invoke('aggregator', 'block', 'view', 'feed-1');
print $block['content'];
?>So $delta here is supposed to be of the form 'feed-x' where x stands for the number of the feed.
--- ADDED TO THIS POST ---
And for a block created from a view:
<?php
$block = module_invoke('views', 'block', 'view', 'ernies_journal-block_1');
print $block['content'];
?>where 'ernies_journal-block_1' is the delta, which you can find by editing the block:
/admin/build/block/configure/views/ernies_journal-block_1

Thank you!
When updating from Drupal 5 to 6, it seems that printing out views the other way (using $delta as a number) stopped working. I was pretty confused until I came across your post. Thanks very much...