After some more research this isn't as easy as it appears. Using form_alter() is the easy part. The trouble comes with how user.module is handling form validation. If it was setting #validate I could easily override it, but it is doing validation through user_user(). Personally, I see this as a bug. Any thoughts? ~Rob Robert Wohleb wrote:
The validate function checks for a valid email addy. As Marc pointed out, I suppose this should get rolled in to the logintoboggan module.
~Rob
Derek Wright wrote:
On Jun 6, 2006, at 11:47 AM, Robert Wohleb wrote:
Agreed, just setting the email field to a dummy value and hidden causes a few problems.
in http://drupal.org/node/64221, i had good luck in form_alter() using a more drastic approach: unset(). ;)
of course, you'd have to make sure the validate() and submit() hooks don't do something catastrophic if some form element they were expecting is totally gone...
but, it worked for me in project. might work for you, too...
-derek (dww)
-- ---------------------------------------------------------- It is by Caffeine alone that I set my mind in motion It is by the beans of Java, that my thoughts acquire speed The hands acquire shakes; the shakes become a warning It is by Caffeine alone that I set my mind in motion