[development] Drupal 7 drupal_get_form

Randy Fay randy at randyfay.com
Mon Apr 25 06:02:30 UTC 2011


In Drupal 7 you avoid rendering; you do *not* render a form after calling
drupal_get_form(). You return the render array that it creates.

Please take a look at the form_example in Examples for more help.

You may also be interested in the render_example.

-Randy

On Sun, Apr 24, 2011 at 10:40 PM, Iain Wiseman <iwiseman at bibble.co.nz>wrote:

> Hi,
>
> In drupal 6 used to have
>    $output = '';
>    $output .=  drupal_get_form('my_form', $arg1);
>
> Not I find I need
>
>    $output .=  drupal_render((drupal_get_form('my_form', $arg1));
>
> However it not longer passed arg1 to the form.
>
> Any ideas
>
> Regards,
> Iain
>
>
>
>


-- 
Randy Fay
Drupal Module and Site Development
randy at randyfay.com
+1  970.462.7450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110425/f6efc18a/attachment.html 


More information about the development mailing list