I'm trying to programmatically store CCK type nodes using drupal_execute(). Empty nodes get created; none of the CCK fields is saved. Evidently the first line in drupal_process_form() is responsible:
$form_state['values'] = array();
So my question is why does 'values' get erased, and more importantly, how can I save CCK fields using drupal_execute()?
I tried save_node() too which worked well; however I'd prefer the former since it invokes validation.