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.


1 Answer 1

  • 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
  • if I implement hook_cron, How I run the job every 2h (for example)? May 23, 2014 at 1:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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