Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I would like to set Actions (such as send email to user) for when a Content Profile has not been updated for X days.
Can anyone please comment on if this is possible?
Many thanks!
Comments
Comment #1
barraponto CreditAttribution: barraponto commentedI hope not. I would hate if a website kept insisting me on updating my profile.
Comment #2
YK85 CreditAttribution: YK85 commented+1 subscribing
Comment #3
djdevin@barraponto that is only your opinion...some sites have a legal requirement to keep all contact information up to date, especially in education, medical, etc. Maybe check on login if they need to update their profile - and don't let them get anywhere else until they do.
We solved it using rules, but it still used some custom PHP in the rules evaluation to load and check the profile's last updated date.
Comment #4
itserich CreditAttribution: itserich commentedI wante a similar solution when regular node content had not been updated.
The only module solution I found was Workflow plus Workflow Extensions, the age of state token. Don't know if this could work here.
Comment #5
barraponto CreditAttribution: barraponto commentedWell, then I'd guess it would have to be done through cron hooks, since it isn't actually a response to an event, but to the lack of an event...
Comment #6
djdevinCron isn't necessary - when an event happens, check the last modified date of the user's content profile. If it is older than X days then send them to the edit form with a message. The "event" is visiting a page, logging in, navigating somewhere etc...
Comment #7
itserich CreditAttribution: itserich commentedWe have a lost and found web site, people often do not update.
We do use cron. Each time a node is updated by user, it schedules a Rule Set which tests the age of the last user modification.