Get the value of a taxonomy field
Nicolas_85 - July 18, 2008 - 14:08
| Project: | Taxonomy Fields |
| Version: | 5.x-1.7-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Nicolas_85 |
| Status: | closed |
Jump to:
Description
I have a field called field_time, it's a taxonomy field linked to the taxonomy Time.
When a user wants to create a new node he has to select a value for Time.
I want to manipulate the sent value of Time in node.module (see issue.PNG)
How can I get the value of this field ?
Regards,
Nicolas
| Attachment | Size |
|---|---|
| issue.PNG | 33.68 KB |

#1
Hi Nicolas,
the values of taxonomy fields are usually saved in a table called 'content_type_term_related_[tid]' where tid is the term id of the taxonomy term you are using.
(If you would be using a universal value for the field it would be stored in the 'taxonomy fields' table)
Regarding your .png, there is absolutely no need to modify core modules, changes here can be fatal.
Instead hooks should be used to change Drupal the way you need it.
Check out hook_nodeapi here http://api.drupal.org/api/function/hook_nodeapi/5.
Hope this helps
#2
Problem solved with hook_insert() and hook_form() !
Thanks !
#3
Automatically closed -- issue fixed for two weeks with no activity.