API.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. }