You are here

function user_import_delete in User Import 7

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.3 user_import.admin.inc \user_import_delete()
  7. 7.2 user_import.admin.inc \user_import_delete()
1 call to user_import_delete()
user_import_limited_delete in ./user_import.module
1 string reference to 'user_import_delete'
user_import_menu in ./user_import.module
Implementation of hook_menu().

File

./user_import.admin.inc, line 86
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;
}