A client has asked me to add a feature to allow users to change their profile e-mail address as they sign up for events and such. The basic idea is that the signup form (for authenticated users -- anon signups already collect an email address) will include an e-mail field, pre-populated with their current address. If the user changes this field during the signup (either new signups or editing an existing signup), it brings you to a confirm form to verify the user actually wants to update their e-mail in their profile.
I did this as an add-on module, instead of doing it directly in signup, since it seems like the kind of thing not everyone's going to want, and it ended up being 188 lines all together (with comments).
Stay tuned for the patch...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 529250-signup_email_confirm.patch | 8.77 KB | dww |
Comments
Comment #1
dwwThis should create a modules/signup_confirm_email subdir in your signup folder. Anyone care to give it a test-spin before I commit? It only kicks in if you change the email address. Should work fine on both new signups and when editing existing signups. Any reviews or feedback appreciated. Thanks!
Comment #2
mlsamuelson commentedI've tested the patch/module and it works as expected for new signups as well as edited signups. The workflow is nice and non-obtrusive.
Comment #3
dwwCommitted to HEAD and branched to DRUPAL-6--1. This will be out in RC4.
Comment #4
dwwUgh, except this breaks other modules that try to alter the signup form, in particular, signup_status. :( see #534948: signup_confirm_email breaks signup_status