Closed (fixed)
Project:
Rules
Version:
7.x-2.9
Component:
Rules Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2017 at 15:19 UTC
Updated:
4 Dec 2018 at 05:59 UTC
Jump to comment: Most recent
Comments
Comment #2
tr commentedRules have the following structure:
WHEN an event happens
IF conditions are right
THEN take an action.
Recognize that processing all the existing users on your site is a separate task from the day-to-day job of ensuring that all new users are handled correctly.
To process all your existing users, you really ought to use drush or custom code or a shell script. I'm not going to discuss that here.
Let's look at the day-to-day task of maintaining your site with Rules:
WHEN a user is updated.
IF the birthday field has changed.
THEN schedule a rule to execute every year on the new birthday.
THEN also unschedule the rule on the old birthday, if it exists.
The rule you will schedule is basically the rule you already have written which makes an event on that date.