Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As mentioned in the title, the hook_user gets an empty array when called for op login when it is called when a user is logged in immediately after registration.
I have traced this to the function logintoboggan_process_login that gives an uninitialized variable $edit to the module_invoke function.
Comments
Comment #1
hunmonk CreditAttribution: hunmonk commentedthere are two uses of logintoboggan_process_login() in the module -- the other is for email validation links, and that wouldn't include any submitted form data.
attached patch fixes this issue for the registration form -- applied to 5.x-1.x-dev, 6.x-1.x-dev, and HEAD. check here for the code changes to:
http://drupal.org/cvs?commit=273664