Set user-dependent default value for taxonomy field
Liberation - March 5, 2009 - 01:13
| Project: | Event |
| Version: | 6.x-2.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi, for new empty event nodes I'd like to set the default value of a taxonomy field to a value derived from the user's profile value. Is this possible, and what's the best (non-intrusive) way? Can I use a form-alter hook do you think? Many thanks for any assistance.

#1
OK, the hook form_alter works fine. However I did have to set my custom module priority in the system table to 1 so it ran after the taxonomy module ran its form_alter on the form. (The Utility module can do this).
#2
I need to be able to do this too, and not just with events. Would you mind sharing your code? Or can anyone suggest some combination of actions, rules, etc. that can do this?