flagger_notify
Flagger Notify is a helper module for the Flag system. It solves a common problem: automatically sending email notifications to users when the content they have bookmarked or subscribed to is updated.
This module uses Drupal's Queue API to send emails in the background. This ensures that even if thousands of users flagged a piece of content, editing that content won't slow down your website.
Features
- Performance First: Uses Cron and Queue Worker to process emails in batches, preventing server timeouts.
- Spam Prevention: Intelligent deduplication ensures a user only receives one email per update, even if they flagged the content with multiple flags. Site administrators can choose to disable or enable this setting.
- Customizable: Administrators can enable notifications for specific flags and customize email subjects/bodies using HTML and Tokens.
- Language Support: Notifications are grouped and processed by language.
Post-Installation
After installing the module, follow these steps to make it work:
- Go to the configuration page at: /admin/config/system/flagger-notify
- General Settings: You can enable "Debug Logging" here to test if emails are being queued properly.
- Templates: Set up your default email Subject and Body. You can use tokens like
[node:title]or[user:display-name]. - Flag Configuration: Look for the list of available flags at the bottom of the page. Check the "Enable notifications" box for the flags you want to use.
Note: Make sure your site's Cron is running regularly to process the email queue.
Additional Requirements
This module requires the following modules to function:
Credits
This project was developed by Dao Duc Trung.
Special thanks to Google Antigravity for the assistance in coding and technical guidance.
Transparency note: Artificial Intelligence was used to assist in writing the code and documentation for this module.