Hello,

I need to execute one rules action once per year, on january 1st of each years.

Is it possible with this module, if yes how ? If no, could it be implemented ?

thanks

Alex

Comments

zmove created an issue. See original summary.

fonant’s picture

Status: Active » Fixed

I think you can do this as follows:

  1. Create a rule triggered by the "Once per day" event
  2. Add a "Current day of the month" condition:
    • Comparison "equals"
    • Day of the month value "1"
  3. Add a "Text comparison" condition:
    • Data selector "site:name" (dummy text, not used)
    • PHP evaluation "return date('m');"
    • Matching text "^01$" (for January)
    • Comparison operation value "Regular expression"
fonant’s picture

Status: Fixed » Closed (won't fix)

Changing status, as there's no need for a change to do this.