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
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

AttachmentSize
issue.PNG33.68 KB

#1

boneless - July 19, 2008 - 11:57
Version:5.x-1.6» 5.x-1.7-dev

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

Nicolas_85 - July 21, 2008 - 15:46
Status:active» fixed

Problem solved with hook_insert() and hook_form() !
Thanks !

#3

Anonymous (not verified) - August 4, 2008 - 15:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.