You are here

function node_import_drupal_execute in Node import 6

The original version of drupal_execute() calls drupal_process_form(). The modified version sets $form_state['must_validate'] = TRUE and calls node_import_drupal_process_form() instead.

Related topics

3 calls to node_import_drupal_execute()
node_import_create_node in supported/node.inc
Create a new node by submitting $type_node_form.
node_import_create_taxonomy in supported/taxonomy.inc
Create a new vocabulary or term by submitting the corresponding form.
node_import_create_user in supported/user.inc
Create a new user.

File

./node_import.inc, line 2052
Public API of the Node import module.

Code

function node_import_drupal_execute($form_id, &$form_state) {
  $args = func_get_args();
  $args[1] =& $form_state;
  $form = call_user_func_array('drupal_retrieve_form', $args);
  $form['#post'] = $form_state['values'];
  $form_state['must_validate'] = TRUE;
  drupal_prepare_form($form_id, $form, $form_state);
  node_import_drupal_process_form($form_id, $form, $form_state);
}