Hi, I'm Dao Duc Trung.
I originally developed this module to solve a specific need for my website, ddt.one: notifying users via email when content they have "flagged" (bookmarked, subscribed, etc.) gets updated. While it was built for my personal use case, I believe it provides a solid foundation for anyone needing similar functionality in Drupal 11, so I released it publicly.
Flagger Notify integrates with the Flag module to send automated email notifications to users when a node they have flagged is updated.
- Queue-Based Processing: Notifications are added to a queue and processed via Cron, ensuring performance is not impacted during content updates.
- Smart Debounce: If a node is edited multiple times in a short period, only one notification is queued per cycle.
- Per-Flag Configuration: Set different email templates for different flags (e.g., "Bookmark" vs "Follow").
- Translation Ready: Fully translatable configuration for multilingual sites.
- Access Control: Respects node permissions. If a user loses access to view a node (e.g., it is unpublished), they will silent skip receiving the notification.
- Debug Mode: detailed logging of queue operations and email content (including raw HTML) for testing.
- Drupal Core: ^11
- Flag module
- Token module
- User module (Drupal Core) - Required for user notifications.
- Place the module structure in your
modules/customdirectory. - Enable via Drush:
drush en flagger_notify
- Ensure dependencies are installed.
- Go to Configuration > System > Flagger Notify (
/admin/config/system/flagger-notify). - Global Defaults: Set a fallback email subject and body.
- Flags: Check the flags you want to enable. You can then override the email subject/body for that specific flag, or leave it empty to use the global default.
- Tokens: Use the Token browser to insert dynamic values (e.g.,
[node:title],[user:display-name],[node:url:absolute]).
- Author: Dao Duc Trung
- Co-Pilot: Code written and refined with the assistance of Antigravity (Google DeepMind).