[support] printing a block within a block

Jibran Ijaz jibran.ijaz at gmail.com
Fri Sep 30 07:22:51 UTC 2011


Hi, I think this will help
This is to print search block


  $block = module_invoke('search', 'block_view', 'search');
  print render($block);


On Thu, Sep 29, 2011 at 9:06 PM, Mutuku Ndeti <jnmutuku at gmail.com> wrote:

> Hi,
>
> I want to  print a block inside another block. I am using a custom
> module to  alter a form.
>
> How do I do this in drupal 7.
>
> I have tried print $block['block-id']; ,  but it's not working.
>
> --
> Tel:254- 722-490994
> www.agile.co.ke | www.jipambe.com
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Regards,
Jibran Ijaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110930/0e41f243/attachment.html 


More information about the support mailing list