0

I have a content type that includes a date field called expires. I'd like to set up some way to monitor all nodes of this content type and if the current date is close to the expires field value, send an email. I checked the rules module using the built in scheduler, but I didn't see a way to check a specific node, or a series of nodes.

1
  • 1
    Should be pretty easy to use hook_cron to check the value of that field and fire off an email with drupal_mail_system if the value meets your criteria. May 2, 2013 at 19:46

1 Answer 1

1

Use hook_cron() to check the value of that field when cron runs and fire off an email with drupal_mail_system() if the value meets your criteria.

Your Answer

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

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