[development] Drupal 7 drupal_get_form

Gordon Heydon gordon at heydon.com.au
Mon Apr 25 05:47:12 UTC 2011


Hi

Use func_get_args() to check whick arg the value us being past. The
for args have changes so you may bit be looking in the right place.

Gordon

Sent from my iPhone

On 25/04/2011, at 2:49 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
>
>
>


More information about the development mailing list