You are here

function _node_import_import_validate in Node import 5

1 call to _node_import_import_validate()
_node_import_errors_validate in ./node_import.module

File

./node_import.module, line 508
This modules provides a wizard at "administer >> content >> import" to import a CSV file with nodes.

Code

function _node_import_import_validate($op, &$edit) {
  if ($edit['op'] == t('Delete file from server')) {
    if (file_delete($edit['file']->filepath)) {
      drupal_set_message(t('Deleted the file from the server.'));
    }
    $edit = array();
    $_SESSION['node_import_page'] = '_node_import_start';
  }
  else {
    if ($edit['op'] == t('Download rows with errors')) {
      $_SESSION['node_import_page'] = '_node_import_errors';
    }
  }
}