Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Notification Message

492 sites No security coverage
View on drupal.org

This module allows site administrators to create and broadcast notification messages across a Drupal site. You can configure messages with specific display times, conditions like user roles or paths, and make them dismissible by users.

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
6 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Slowing

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