title: How can i add my custom form to custom block in my custom module
body: <p>I've made a custom Drupal module. Inside which I've created a block and a form. How can I make the form appear in the block content? Cheers.</p>
  
  <p><strong>Block Code:</strong></p>
  
  <pre><code>function module_block($op = 'list', $delta = 0, $edit = array()) { 
    $block = array();
  
    if ($op == "list") {
      // Test
      $block[0]["info"] = t('Block');
    }
    else if ($op == 'view') {
      $block['content'] = module_function();
    }
  
    return $block;
  
  }
  
  
  // End module_block
  </code></pre>
  
  <p><strong>Form Code:</strong></p>
  
  <pre><code>function module_my_form($form_state) {
  
    $form['email'] = array(
      '#type' =&gt; 'textfield',
      '#title' =&gt; t('Email'),
      '#required' =&gt; TRUE,
    );
  
    $form['submit'] = array(
      '#type' =&gt; 'submit',
      '#value' =&gt; 'Submit',
    );
    return $form;
  }
  </code></pre>
  
  <p>Cheers again for any help.</p>