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

CommentFileSizeAuthor
issue.PNG33.68 KBNicolas_85

Comments

boneless’s picture

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

Nicolas_85’s picture

Status: Active » Fixed

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

Anonymous’s picture

Status: Fixed » Closed (fixed)

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