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

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

Could you post what the macro module is generating?

- Arie

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.