The implementation of hook_user_delete calls ga_login_delete_code(), but if you are trying to delete spam users who do not have an entry in the ga_login table, you will get the "There was a problem deleting the GA Login code" code. (I'm also using the patch in #1834290 to make GA Login required for some users but not others, so I have lots of users without GA Logins in the DB).
This is a confusing message to see when you are trying to delete a user -- and it makes it seem like the user deletion didn't work. Attached is a patch that runs db_delete on the GA Login table without calling ga_login_delete_code().
Comment | File | Size | Author |
---|---|---|---|
#4 | 2758683-ga_login-user_deletion_error-4.patch | 1.53 KB | anbarasan.r |
| |||
#2 | 2758683-ga_login-user_deletion_error-2.patch | 448 bytes | sjancich |
|
Comments
Comment #2
sjancich CreditAttribution: sjancich commentedComment #3
attiks CreditAttribution: attiks at Attiks commentedIs there a reason you didn't use
_ga_login_account_has_code
to check if there is a code?Comment #4
anbarasan.r CreditAttribution: anbarasan.r at NBCUniversal commentedI used the below patch.
Comment #5
anbarasan.r CreditAttribution: anbarasan.r at NBCUniversal commentedComment #6
dbjpanda CreditAttribution: dbjpanda commentedGoing to review