A module to easily enable Rules to be fired once per day at, or soon after, a specific hour.

The module's main function is to provide a "Once per day" event that can be used to trigger rules.

The module also provides a "Day of the week is a" Rules condition, to further restrict actions to being run on specific day(s) of the week, on working days only, or at weekends only.

From version 7.x-1.1 there is now a "Day of the month" condition, too.

While this effect can be achieved with a scheduled action that reschedules itself, this module provides a simpler solution that does not rely on the scheduled actions being present in the queue (deleting a looping scheduled action would stop the daily action).

Configuration

Configure at: Configuration > Workflow > Rules > Once per day

Here you can specify the hour (24 hour clock) after which the Rules event will be triggered when the Drupal cron tasks are next run.

This page also displays that date and time the Rules event was last triggered, and there is a button to reset this if you want the event to be re-triggered on the same day (perhaps for testing purposes).

Usage

  1. Set up a cron job to run Drupal's cron tasks at least once an hour.
  2. Construct your Rule, or Rules, using the triggering event "Once per day" that this module provides.
  3. Optionally limit the rule to specific days of the week or days of the month, using the conditions that this module provides.
Supporting organizations: 
Created this module

Project information

Releases