title: form inside a block in drupal 7
body: <p>I am placing a form inside a block in drupal with the following code </p>
  
  <pre><code>function current_posts_block_view($delta = '') {
    $elements = drupal_get_form('mydeveloper_simple_form');
    $block['content'] = drupal_render($elements);
  }
  </code></pre>
  
  <p>This block is displayed in footer. The form has required field validator in it. So if I submit the form with no data the validator will work and error is displayed, in the default place in the node where the error will get displayed. (on the top of the page)
  I want it to be displayed inside my block. What should I do for that? </p>