[development] add a block in my custom php code
paolomainardi at gmail.com
Tue Mar 10 21:32:39 UTC 2009
On Tue, Mar 10, 2009 at 7:41 PM, Andrew Berry <andrewberry at sentex.net>wrote:
> On 10-Mar-09, at 2:06 PM, Paolo Mainardi wrote:
>> $block = module_invoke('block', 'block', 'view', YOUR_BLOCK_ID);
>> print $block['content'];
> I would consider creating a new region in your theme instead. Then you can
> assign and move any block to it through the block admin page as you see fit.
> Creating a region is pretty simple; I think the Zen theme has a decently
> documented method of doing it.
Yes clear, the region it's the standard way :) This is the "raw" mode to
call directly a block.
Vice Presidente Assoc.ILDN (http://www.ildn.net)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development