Array merge of user_register_submit function squashes pre-defined user_register_submit functions
mikehostetler - June 15, 2009 - 19:24
| Project: | LoginToboggan |
| Version: | 6.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | mikehostetler |
| Status: | closed |
Jump to:
Description
Logintoboggan overwrites $form['#submit'], squashing my previously defined custom user_register_submit function. The code is set up to not clobber the function, but during my testing this was the case. I've attached a patch which fixes the issue.
| Attachment | Size |
|---|---|
| logintoboggan_user_register_submit.patch | 536 bytes |

#1
committed to 6.x-1.x-dev and HEAD.
thanks and sorry for the delay!
#2
Automatically closed -- issue fixed for 2 weeks with no activity.
#3
re-opening this as i am still experiencing this problem.
if i use the content_profile_registration function in conjunction with logintobban and do the following -
expose a content field to the registration form.
on submit what should happen is -
- logintoboggan_user_register_submit should run and process the login.
- content_profile_user_register_submit should run after the above and process the extra content fields on the form and save the node in the database.
if i set immediate login to ON the 2nd function does not run. If i set immediate login to OFF - it will process the 2nd submit function and save the node. I'd ideally like to use immediate login.
Also changing the version as i've upgraded to 1.6 and the problem persists.
#4
upon further inspection it seems another module i have installed is messing up the process - UCreate, if i comment out the hook_user in that module, logintoboggan runs its course fine. Moving this to the UCreate issue queue and will expand on the issue there.
#5
actually, closing this, will re-open another issue over there.