Closed (fixed)
Project:
Drupal core
Version:
6.5
Component:
base system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2008 at 20:23 UTC
Updated:
14 Jan 2009 at 12:30 UTC
I'm trying to create nodes dynamically with drupal_execute, and all was good until I attempted to add taxonomy terms to my node. Based on what I see using the macro module, I assumed I could do something like the following:
$form_state['values']['taxonomy'][$vid][$tid1] = $tid1;
$form_state['values']['taxonomy'][$vid][$tid2] = $tid2;
$form_state['values']['op'] = t('Save');
drupal_execute ( $form_id, $form_state, $node );
however, this does not work. Any idea what I am overlooking?
Comments
Comment #1
ainigma32 commentedCould you post what the macro module is generating?
- Arie
Comment #2
ainigma32 commentedLooks like stjamess won't be posting any feedback so I'm setting this to fixed.
Feel free to reopen if you think that is wrong.
- Arie