16 Nov
2007
16 Nov
'07
8:21 a.m.
Hi, I was experimenting with drupal_execute, but this set of functions does not seem to work the way I expect it to. I change the function the node creation form submits to and then try to call drupal_execute to pass the values. function splitter_form_alter($form_id, &$form) { if ($form_id == 'page_node_form') { $form['#submit'] = array( 'splitter_submit' => array() ); } } function splitter_submit($form_id, $form_values) { drupal_execute('page_node_form', $form_values); } However, this does not seem to work. After I submit, I get a blank page and no node is created. What am I missing? Thanks, Domas