0

I have a content type that has a computed field that needs to be updated constantly. So I need to create a cronjob to update all nodes of a certain type (example 'page'), so that the code is executed from the computed field and its value updated.

thx

2
  • You need to create a custom module to do this.
  • Implement hook_cron to create a cron job in custom module
  • You can update a node programatically.. For more details see node_save
| improve this answer | |
  • if I implement hook_cron, How I run the job every 2h (for example)? – Miguel Borges May 23 '14 at 1:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.