Even if this module is mainly for anonymous users, we use it in some content types for both: anonymous and authorized users. In case of authorized users it would be nice to auto fill name and e-Mail like in the normal contact form. The attached Patch added this functionality.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | anonymous_contact-6.x-1.1.user_2.patch | 904 bytes | MiniMax |
| anonymous_contact-6.x-1.1.user_.patch | 783 bytes | MiniMax |
Comments
Comment #1
bobsomebody commentedI was just about to post up a patch request about something similar to this. Except my patch is rather crude and sloppy.
simply find this code in the anonymous_contact.module
and replace it with this code here:
This will simply redirect the user to the regular contact forms if they are currently logged into the site.
I am sure there is a much cleaner way to do this but the idea is simple, if $user->uid != 0 (not anonymous user id) then use regular contact form. Maybe someone could come up with a cleaner patch?
On a side note some way to get this module picked up by pathauto would be awesome also :)
Comment #2
MiniMax commentedMy first patch was buggy, use this one please.