The form at user/[uid]/edit should use an email form element.
It seems, according to #316886: hook_form_alter will not alter user-profile-form that a form_alter won't cut it here.
Haven't worked it out yet, mabe somebody else wil have a pointer.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | html5_tools-898914.patch | 936 bytes | ericduran |
| #2 | 898914.patch | 696 bytes | alanburke |
Comments
Comment #1
ericduran commentedHi alanburke,
thanks for the feature request. The more the merrier :)
Regarding this issue, the form can be alter using hook_user (http://api.drupal.org/api/function/hook_user)
It'll look something like this (note I just threw this together, it will not work, the brackets should be check to make sure they're balance.The form array might be wrong, I'm sure there's something else in there and is not just 'mail'. But this should point you in the right direction :-) )
Comment #2
alanburke commentedNo Joy.
I get a warning from elements module.
Patch attached as a start for anybody else.
Comment #3
ericduran commentedHere's a working patch.
Comment #4
alanburke commentedDoes the trick for me.
Good work.
Comment #5
ericduran commentedchanging status because of alanburke's comment above ^^
Comment #6
bleen commentedcommitted to HEAD