I don't really have time to learn all of Drupals ins and outs in order to get this project finished, so I wrote a little script that updated the table field in node_content_XXX so that the status gets changed to adopted and the current user is put in for the adoptor. Unfortunatly, when I go to view the node, it is not changed, even though I can see it in the table. Is there some other place I need to update as well? I have tried clearing my cache, and even if this did work, it would not be acceptable to ask the users to clear their cache each time they adopted a node.

Thanks,

Jason

Comments

karens’s picture

Status: Active » Closed (won't fix)

You really can't just change values in your tables without understanding how CCK works and knowing what impact that is going to have on everything else. If you want to do something programatically, you might investigate the computed_field to see if that will do what you want. If you want to do something more custom, you could try invoking node_load, updating your values in the node array, then invoking node_save, but you'll have to dig into the code at least far enough to understand how to do that, and I won't make any guarantees that that won't break anything.