I would like to automatically save a CCK field which will be determined by the data in the $node
object. Using node_save
in this instance will cause an error so I need a way to simply insert the additional field into the database.
One obvious way is to simply call db_insert
but I'm not sure that this is the best way to do this since most of the information in this table is automatically generated and I'd like to leave that up to Drupal if I can.
What is that standard approach in this case?
Thanks!