Drupal is a registered trademark of Dries Buytaert

message_filter

1 sites No security coverage
View on drupal.org


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
3
First release
Aug 2025
Latest release
6 months ago
Release cadence
4 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
2.0.2 Stable Aug 25, 2025
2.0.1 Stable Aug 25, 2025
2.0.0 Stable Aug 17, 2025