This project is not covered by Drupal’s security advisory policy.
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
- Create message types – Define different notification categories with configurable conditions and dismiss settings
- Create messages – Add notification content with publish dates and optional display conditions
- Place the block – Add the "Notification Messages" block to any region
- 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.
Supporting organizations:
Development
Project information
- Project categories: Content display, Content editing experience, Developer tools
506 sites report using this module
- Created by droath on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
2.0.0-rc2
released 22 December 2025
Works with Drupal: ^10 || ^11
Install:
Development version: 2.0.x-dev updated 15 May 2026 at 02:47 UTC
8.x-1.0-rc9
released 7 May 2025
Works with Drupal: ^8 || ^9 || ^10 || ^11
Install:
Development version: 8.x-1.x-dev updated 7 May 2025 at 00:11 UTC

