<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 6/10/2011 2:28 a.m., Ms. Nancy Wichmann wrote:
    <blockquote
      cite="mid:1317821291.15247.YahooMailNeo@web180312.mail.gq1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:arial,
        helvetica, sans-serif;font-size:12pt">
        <div><span>"Created all my forms..." How did you create them? If
            they are in a module, why not add a simple hook_block() [or
            the D7 equivalents]? It looks like the formblock module
            probably does that with some fancy wrapping stuff.<br>
          </span></div>
        <div>&nbsp;</div>
        <div><font color="#ff007f" face="bookman old style, new york,
            times, serif" size="4"><i><strong>Nancy</strong></i></font></div>
        &nbsp;
        <div><font face="arial, helvetica, sans-serif">Injustice
            anywhere is a threat to justice everywhere. -- Dr. Martin L.
            King, Jr.</font></div>
        <br>
      </div>
    </blockquote>
    Thanks Nancy,<br>
    <br>
    They are in a module. I googled for some time and came across <br>
    <br>
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/1450941/inserting-a-form-into-a-block-in-drupal">http://stackoverflow.com/questions/1450941/inserting-a-form-into-a-block-in-drupal</a><br>
    <br>
    Which suggested<br>
    <br>
    function yourmodule_block_view($delta='')<br>
    {<br>
    &nbsp; switch($delta) {<br>
    &nbsp;&nbsp;&nbsp; case 'your_block_name':<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $block['subject'] = null; // Most forms don't have a subject <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $block['content'] =
    drupal_get_form('yourmodule_form_function');<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>
    &nbsp;&nbsp; }<br>
    &nbsp;&nbsp; return $block;<br>
    &nbsp;}<br>
    <br>
    However I have done that for one of my simple forms and cannot see
    it appear under block. <br>
    <br>
    Assume I am an idiot when replying because it might be me being
    really silly. <span class="moz-smiley-s1"><span> :-) </span></span><br>
    <br>
    Thanks as always for your help. I have come a long way over the last
    six months thanks to the support of this forum.<br>
    <br>
    Iain<br>
  </body>
</html>