You are here

function user_import_delete in User Import 7.3

Same name and namespace in other branches
  1. 8 user_import.admin.inc \user_import_delete()
  2. 5.2 user_import.module \user_import_delete()
  3. 5 user_import.module \user_import_delete()
  4. 6.4 user_import.admin.inc \user_import_delete()
  5. 6.2 user_import.admin.inc \user_import_delete()
  6. 7 user_import.admin.inc \user_import_delete()
  7. 7.2 user_import.admin.inc \user_import_delete()
2 calls to user_import_delete()
user_import_confirm_delete_submit in ./user_import.admin.inc
user_import_limited_delete in ./user_import.module

File

./user_import.admin.inc, line 157
Provide administration configuration pages to import users.

Code

function user_import_delete($import_id = NULL, $return_path = 'admin/people/user_import') {
  if (empty($import_id) || !is_numeric($import_id)) {
    drupal_goto($return_path);
  }
  $import = _user_import_settings_select($import_id);
  _user_import_settings_deletion($import_id);

  //_user_import_file_deletion($import['filepath'], $import['filename'], $import['oldfilename'], $import['ftp']);
  file_unmanaged_delete($import['filepath']);
  drupal_goto($return_path);
  return;
}