FeedBurner and module_invoke

nickbits - June 12, 2009 - 10:39

Hi All,

I expect I am missing something obvious again. I have the FeedBurner module (http://drupal.org/project/feedburner) and would like to embed two of the blocks it generates directly into a page/node. That is I do not want/cannot create regions. I know the theory behind doing this and have attempted to include the following, to display the email subscribe block, in the theme's page.tpl.php:

$block = module_invoke('feedburner', 'block', 'view', 1);
print $block['content'];

However, I get nothing. Can anyone give me some pointers please?

Regards,
Nick

Have you configured those

Dave Reid - June 12, 2009 - 15:42

Have you configured those blocks? They won't display if they haven't been configured.

Hi, Yep blocks are

nickbits - June 12, 2009 - 17:01

Hi,

Yep blocks are configured.

Nick

----------------------------------
Nick Young
nickbits.co.uk - My Personal Site
drnick.me.uk - My CV
devzen.co.uk - My business

Hi, Don't worry about it,

nickbits - June 12, 2009 - 17:43

Hi,

Don't worry about it, have figured an alternative way of achieving what I wanted, probably a better way anyway.

Nick

----------------------------------
Nick Young
nickbits.co.uk - My Personal Site
drnick.me.uk - My CV
devzen.co.uk - My business

 
 

Drupal is a registered trademark of Dries Buytaert.