[support] Explain of drupal_execute(). Someone ?

William Smith william.darren at gmail.com
Thu Dec 11 00:36:56 UTC 2008


> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20081210/5351d345/attachment.htm 


More information about the support mailing list