Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
6.x-1.x-dev
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2006 at 20:55 UTC
Updated:
1 Nov 2006 at 22:06 UTC
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
Comment #1
karens commentedYou 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.