Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Message Digest

Security covered Drupal 9–11

Part of the Message ecosystem · 16 projects

View on drupal.org

Message Digest is a plugin to the Message module which adds the ability to send email messages in a digest format every day or week, rather than on demand. This is useful for sites with too much activity for on-demand messages to be useful, or with users who prefer to not get multiple emails a day.

Usage

This module provides two new notification plugins -- "digest_day" and "digest_week". Just use one of those as the $notifier_name for message_notify_send_message().

Doing so will prevent the message from sending an immediate notification, and instead will add it to the daily or weekly digest for that user which will be emailed on cron every day or week.

User Interface

This module provides no UI. If you want users to be able to choose their notification preferences via a UI, check out the Message Subscribe Email Frequency module.

Extending

If you'd like to use a different interval than "day" or "week", doing so is as easy as creating a new plugin with a custom interval. Take a look at this module's "digest_day" or "digest_week" plugin (under plugins/notifer/digest_*) and you'll see that all it needs to do is override the getInterval() function with some new interval string that will be accepted by strtotime().

Examples:

  • 2 days
  • 6 hours
  • 3 weeks

Release-blocking todos

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.5 Stable 9–11 Sep 20, 2024
8.x-1.4 Stable 9–11 Sep 17, 2024