Assigning Node Field Values in Hook Insert and Update the Right Way
February 4, 2013
If you find yourself needing to manipulate node fields during hook_node_insert or hook_node_update, the best way is to use field_attach_update. Especially, if you need access the node id.