11 Dec
2008
11 Dec
'08
1:36 a.m.
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