I have an event content type with a date field. Is there a rule I can create that will display a system message to the user that "This event is now over." based on comparing the current date and the date in the date field?
EDIT:
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI have an event content type with a date field. Is there a rule I can create that will display a system message to the user that "This event is now over." based on comparing the current date and the date in the date field?
EDIT:
Rules can be used for this. Your message will be displayed using drupal_set_message()
Starting at the Admin screen;
Your question is vague. What is a "message" to the user, a pop-up window ? a fake field you display above the other fields if the date is passed ?
The easiest thing for you to do without coding a custom module is probably using Display Suite to create a custom_field in your content type. Use PHP to set the string value of the message if the date has passed as the field body. Or if the date has passed then call drupal_set_message('Event has already occurred');
Or else return an empty string.
If you want a popup-window you can probably find a suitable module that shows a popup window from this popup module comparison matrix.