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). 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). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (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.

Message Filter intelligently filters system messages for users based on their roles, allowing administrators to customize which messages are displayed, to whom, and on which pages. This helps create cleaner interfaces and ensures users only see relevant notifications.


Message Filter is an innovative Drupal module that revolutionizes system message display by providing intelligent, personalized control based on user roles. It transforms the user experience by automatically filtering technical notifications and prioritizing truly important messages for each user profile. Through its advanced rule system and extensible plugins, Message Filter enables administrators to create cleaner, more user-friendly interfaces while preserving access to critical information for technical teams.

Features

Message Filter radically transforms Drupal message management by bringing a modern and intelligent approach. This module allows administrators to:

  • Customize display by user profile: Create tailored rules for each role (administrator, editor, contributor, visitor)
  • Master notification types: Selectively filter status, warning, or error messages according to your needs
  • Target strategic pages: Block messages on specific Drupal routes (login, content creation, administration)
  • Control by site zones: Hide notifications on precise URL paths with wildcard support
  • Manage priorities intelligently: Automatically resolve conflicts for users with multiple roles through the level system
  • Completely disable messages: Option to block ALL notifications for certain user profiles
  • Diagnose easily: Built-in debugging and logging tools to validate your configurations

Practical use cases:

  • Shield end users from technical error messages while keeping them visible to administrators
  • Create streamlined interfaces for editors by removing unnecessary technical notifications
  • Prevent information overload on specific pages or business workflows
  • Adapt the experience according to users' expertise levels
  • Maintain a professional appearance on public-facing pages by hiding technical details

Post-Installation

After installing Message Filter:

  1. Enable the module through the Drupal admin interface
  2. Configure permissions: Grant "Administer message filter" permission to appropriate roles at /admin/people/permissions
  3. Access settings: Navigate to /admin/config/system/message-filter to configure the module
  4. Initial setup:
    • Check "Enable message filtering" to activate the module
    • Customize rules in the "Role-based Filtering Rules" section
  5. Per-role customization:
    • Enable filtering for desired roles
    • Choose between blocking all messages or selecting specific types
    • Define routes and URL paths to filter (one per line)
    • Adjust priority levels to manage multi-role users
  6. Validate your configuration using the integrated debug information panel

The module works automatically once configured - no additional steps required for end users.

Technical Requirements

  • Drupal Core: Version 10.x or 11.x
  • PHP: Version 8.1 or higher
  • Dependencies: No additional modules required beyond Drupal core

All required Drupal core services are automatically available:

  • Configuration Factory
  • Entity Type Manager
  • Route Provider
  • Messenger Service

While Message Filter works independently, these modules perfectly complement its functionality:

  • Admin Toolbar: Facilitates quick access to configuration pages
  • Devel: Enhances debugging capabilities during development
  • Role Delegation: Simplifies role management for complex setups

Similar projects

Message Filter distinguishes itself from existing solutions through its comprehensive approach:

  • Disable Messages: Only provides global message hiding, while Message Filter offers granular control by role and route
  • Suppress Messages: Limited to specific text matching, whereas Message Filter provides comprehensive filtering rules
  • Message Control: Focuses on message styling rather than visibility control

Message Filter's unique approach combines role-based access control with route and URL path filtering, providing the most flexible message management solution available.

Supporting this Module

If Message Filter helps you in your Drupal projects, please consider:

  • Star the project on drupal.org
  • Report issues and contribute bug fixes
  • Suggest features for future development
  • Contribute documentation with examples and user experiences

Community Documentation

  • Module handbook: Detailed configuration examples and practical use cases
  • Issue queue: Community support and feature discussions
  • Demo site: Try Message Filter on a live Drupal installation
  • Video tutorials: Step-by-step configuration guides (coming soon)

Message Filter is actively maintained and follows Drupal coding standards. It's designed to be lightweight, secure, and compatible with standard Drupal workflows.

Activity

Total releases
4
First release
Aug 2025
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.3 Stable Jun 13, 2026
2.0.2 Stable Aug 25, 2025
2.0.1 Stable Aug 25, 2025
2.0.0 Stable Aug 17, 2025