The Comment Interval module provides an advanced action that allows site admins to specify an interval at which to send comment email notifications. For example, an interval setting of 10 will send out a notification email every 10 comments posted on the site. This functionality is useful when comments need approval before being published.

The notification email that gets sent out by this module is sent to the site email address that was specified when you first installed Drupal. This can be changed via the Site Details section of the Site Information administration page.

Requirements

The Comment Interval module requires the Core Comment and Trigger modules, as well as the Contributed Token module.

Usage

1. Comment Interval Configuration

Download and install the Token and Comment Interval modules on your site. Enable the Comment, Trigger, Token, and Comment Interval modules via the Modules administration page.

The Comment Interval module provides an advanced action and as such, is configured via the Actions administration page. Go to the Actions admin page and scroll down to the CREATE AN ADVANCED ACTION section. Select the "Send a comment notification email at specified intervals..." option from the select list and hit Create. This will take you to the Comment Interval advanced action configuration screen.

Under the Comment notification interval settings, select an interval option from the select list. For example, selecting an interval of "30" will result in a comment notification email being sent out for every 30 comments posted on the site.

Under the Comment notification email subject and Comment notification email body text fields, you can define your own email title and body text, or just leave these fields as is to use the defaults provided by the module.

Hit Save to save your settings.

2. Trigger Configuration

With the Comment Interval advanced action configured, you now need to set up a Trigger to send out the notification email when the specified comment interval has been reached. Head over to the Triggers administration page and click on the Comments tab. Under the "TRIGGER: AFTER SAVING A NEW COMMENT" trigger, select the "Send a comment notification email at specified intervals" action and click on the "Assign" button to save the configuration.

With configuration now complete, you can test your settings by posting comments on your site and ensuring a notification email is sent out when the specified comment interval is reached. In order to receive the notification email, please ensure that the site email address is set to an email account that you have access to.

Notes

This module is still in development. If you have an issue while using the Comment Interval module, please post an issue in the Issue queue. Feature requests are also welcome, and should be posted to the Issue queue.

Project information

Releases