I have a module that creates a node. I have implemented hook_insert, hook_update, and of course the .install file.
My database has a field for the node called product.
For my node form, I have a validation function that works but I am wanting to save a value calculated there into the product column of the database. If I have hook_update and hook_insert both up with the $node->product value included AND I pass $node into the hook_validate by reference, and from there into other functions by reference, shouldn't this value be getting into the database??
I can reprint $node->product, it's assigned. If it's not going into the database, then I would assume my hook_insert is wrong.. But it's working with all other variables.
I am passing $node through a series of functions, all by reference and it comes out the backend with $node->product set to the correct value. After the node saves, and I check the database it's just not there.
If I need to post all of the code I will but it's quite a bit.. I am hopign this is a simple common problem that I am overlooking.
Read »








