[support] Explain of drupal_execute(). Someone ?
Davide Michel 'ZioBudda' Morelli
michel at ziobudda.net
Wed Dec 10 16:12:31 UTC 2008
Hi all. I need to import some blog's node from another site. I have
tried this:
$form_id = 'blog_node_form';
$form['values'] = array(
'title' => 'pippo',
'taxonomy[tags][3]' => 'prova',
'body' => 'Io sono il corpo del messaggio',
'format' => 1,
'field_old_id[0][value]' => '11',
'name' => 'wheel'
);
$k = drupal_execute($form_id,$form);
Field_old_id is a cck's field.
When I try to run this code Drupal return me this error:
warning: call_user_func_array() [function.call-user-func-array
<http://distrofici/admin/zblabs/function.call-user-func-array>]: First
argument is expected to be a valid callback, 'node_form' was given in
/home/michel/LAVORI_ZB/www/distrofici/includes/form.inc on line 366.
Where is my error ?
Tnx.
--
Michel 'ZioBudda' Morelli michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ziodrupal.net MSN: michel at ziobuddalabs.it
JABBER: michel at ziobuddalabs.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20081210/34a59a91/attachment.htm
More information about the support
mailing list