In function _user_import_process in user_import.import.inc, the $errors which are checked for data error is returned before invoking of hook_user_import_pre_save, and because this hook doesn't support passing arguments by reference, so there is no way to get errors during pre save. But pre save should be a right place to check errors of fields again user object.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

qichanghai created an issue. See original summary.

qichanghai’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
qichanghai’s picture

Retrieve the errors after hook_user_import_pre_save.

qichanghai’s picture

Assigned: Unassigned » qichanghai
Status: Active » Needs review