[support] Update CCK Node via Code

Joakim Stai joakimstai at gmail.com
Thu Sep 6 17:51:43 UTC 2007


It could be something as simple as the cache not being cleared. If  
you alter the database, you need to clear the cache for the correct  
value to be displayed.

http://api.drupal.org/?q=api/function/cache_clear_all/5

Joakim

On 6. sep. 2007, at 19.39, Fred Jones wrote:

> I wrote a custom module which updates one value in my content_type_d
> table. Code appears to work perfectly. The problem is that when I view
> the node afterward in the browser, the new value is NOT seen. Even
> though I confirm that the new value IS in MySQL, the old value appears
> on the page. The only way to get a new value to appear is to edit the
> node manually. The field type is integer text field.
>
> I realize there is something that I am missing. Can someone clue me  
> in?
>
> Thanks.
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]



More information about the support mailing list