You are here

API.txt in User Import 7.3

Same filename and directory in other branches
  1. 8 API.txt
  2. 6.4 API.txt
  3. 6.2 API.txt
  4. 7 API.txt
  5. 7.2 API.txt

Overview
========

Import users into Drupal from a csv file (comma separated file).

See files in user_import/supported/ for examples of the API in use.

hook_user_import_form_field_match()
===========================================
Add options to list of Drupal fields to match against column of data being imported.


hook_user_import_form_update_user()
===========================================
Add options to the import settings form.


hook_user_import_data()
===========================================
Manipulate imported data before creating or amending user accounts.


hook_user_import_after_save()
===========================================
Take action(s) after each user account is created or amended.


hook_user_import_imported()
===========================================
Take action(s) after import is complete.

hook_field_user_import_supported_alter(&$supported)
===========================================
Alter array of supported field types, allowing for adding custom field
processors. Example:

MODULE_field_user_import_supported_alter(&$supported) {
 $supported['MODULE'] = array(
   'validate' => 'MODULE_user_import_field_validator',
   'save' => 'MODULE_user_import_field_processor',
 );
}

File

API.txt
View source
  1. Overview
  2. ========
  3. Import users into Drupal from a csv file (comma separated file).
  4. See files in user_import/supported/ for examples of the API in use.
  5. hook_user_import_form_field_match()
  6. ===========================================
  7. Add options to list of Drupal fields to match against column of data being imported.
  8. hook_user_import_form_update_user()
  9. ===========================================
  10. Add options to the import settings form.
  11. hook_user_import_data()
  12. ===========================================
  13. Manipulate imported data before creating or amending user accounts.
  14. hook_user_import_after_save()
  15. ===========================================
  16. Take action(s) after each user account is created or amended.
  17. hook_user_import_imported()
  18. ===========================================
  19. Take action(s) after import is complete.
  20. hook_field_user_import_supported_alter(&$supported)
  21. ===========================================
  22. Alter array of supported field types, allowing for adding custom field
  23. processors. Example:
  24. MODULE_field_user_import_supported_alter(&$supported) {
  25. $supported['MODULE'] = array(
  26. 'validate' => 'MODULE_user_import_field_validator',
  27. 'save' => 'MODULE_user_import_field_processor',
  28. );
  29. }