[support] Explain of drupal_execute(). Someone ?

luca capra luca.capra at gmail.com
Thu Dec 11 10:08:30 UTC 2008


There is an interesting discussion about drupal_execute here:
http://drupal.org/node/131704
||
I followed this to get node submitted properly.

bye luca

William Smith ha scritto:
>
>     Hi. You have to pass another variable to drupal_execute, with node
>     information. If I remember well it should be like this:
>
> [snip]
>
>
>        $k = drupal_execute($form_id,$form, $form);
>
>
> Hmm, I'm not so sure.  drupal_execute expects exactly two parameters, 
> not three.
> (API definition for Drupal 5: 
> http://api.drupal.org/api/function/drupal_execute/5
> API definition for Drupal 6: 
> http://api.drupal.org/api/function/drupal_execute/5)
>
> One thing that I can see wrong in the code that that the original 
> poster quoted is that he is submitting an array of arrays, when only 
> an array is called for.
>
> $form['value'] = array(
>   // stuff
> );
>
> should actually probably be
>
> $form_values = array(
>   // stuff
> );
>
> Best,
> William
>
>


More information about the support mailing list