Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

notification_message

375 sites No security coverage
View on drupal.org

What This Module Does

The Notification Message module allows site administrators to create and broadcast notification messages that appear throughout a Drupal site. Notification messages can be broken into different types to support multiple use cases. Messages can be configured with:

  • Time-based publishing – Set start and end dates to control when messages appear
  • Conditional display – Show messages based on user roles, page paths, content types, or any custom Drupal condition
  • Entity awareness – Notification messages are aware of entities exposed on the route, which integrate with Drupal's Condition API
  • Multiple message types – Create different notification categories for different use cases
  • Dismissible messages – Let users close notifications, shown only once per browser session via cookie-based storage

Use Cases

  • Display site-wide outage or maintenance announcements at a specific date and time
  • Show promotional banners during specific time periods
  • Target notifications to a subset of users based on role
  • Display context-aware messages on specific content types
  • Create dismissible alerts that users can close

How It Works

  1. Create message types – Define different notification categories with configurable conditions and dismiss settings
  2. Create messages – Add notification content with publish dates and optional display conditions
  3. Place the block – Add the "Notification Messages" block to any region
  4. Conditions evaluate – Messages automatically show/hide based on configured conditions and dates

Features

  • Create notification message types with configurable view modes
  • Use conditions to show/hide notification messages via Drupal's Condition API
  • Create custom conditions to support additional use cases
  • Easily attach custom fields to notification message types using Field API
  • Publish/unpublish notification messages using start and end dates
  • Translatable for multilingual sites
  • Cron-based cache invalidation for accurate time-based publishing
  • Accessible dismiss functionality with ARIA announcements

Similar Projects

  • Site Alert – Provides site-wide alerts. Notification Message differs by supporting multiple message types, condition-based targeting, and integration with Drupal's Condition API for more flexible display rules.

Activity

Total releases
4
First release
May 2025
Latest release
3 months ago
Release cadence
76 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
2.0.0-rc2 Pre-release Dec 22, 2025
2.0.0-rc1 Pre-release Dec 20, 2025
2.0.x-dev Dev Dec 18, 2025
8.x-1.0-rc9 Pre-release May 7, 2025