<div dir="ltr">Hi, I think this will help<div>This is to print search block<br><div><br></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; background-color: rgb(255, 255, 255); "><pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; color: black; background-color: initial; line-height: normal; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; background-position: initial initial; background-repeat: initial initial; ">

  <span class="re0" style="color: rgb(0, 0, 136); ">$block</span> <span class="sy0" style="color: rgb(51, 153, 51); ">=</span> module_invoke<span class="br0" style="color: rgb(0, 153, 0); ">(</span><span class="st_h" style="color: rgb(0, 0, 255); ">&#39;search&#39;</span><span class="sy0" style="color: rgb(51, 153, 51); ">,</span> <span class="st_h" style="color: rgb(0, 0, 255); ">&#39;block_view&#39;</span><span class="sy0" style="color: rgb(51, 153, 51); ">,</span> <span class="st_h" style="color: rgb(0, 0, 255); ">&#39;search&#39;</span><span class="br0" style="color: rgb(0, 153, 0); ">)</span><span class="sy0" style="color: rgb(51, 153, 51); ">;</span>
  <span class="kw1" style="color: rgb(177, 177, 0); ">print</span> render<span class="br0" style="color: rgb(0, 153, 0); ">(</span><span class="re0" style="color: rgb(0, 0, 136); ">$block</span><span class="br0" style="color: rgb(0, 153, 0); ">)</span><span class="sy0" style="color: rgb(51, 153, 51); ">;</span> </pre>

</span><br><div class="gmail_quote">On Thu, Sep 29, 2011 at 9:06 PM, Mutuku Ndeti <span dir="ltr">&lt;<a href="mailto:jnmutuku@gmail.com">jnmutuku@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I want to  print a block inside another block. I am using a custom<br>
module to  alter a form.<br>
<br>
How do I do this in drupal 7.<br>
<br>
I have tried print $block[&#39;block-id&#39;]; ,  but it&#39;s not working.<br>
<br>
--<br>
Tel:254- <a href="tel:722-490994" value="+92722490994">722-490994</a><br>
<a href="http://www.agile.co.ke" target="_blank">www.agile.co.ke</a> | <a href="http://www.jipambe.com" target="_blank">www.jipambe.com</a><br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Jibran Ijaz</div><br>
</div></div></div>