Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.9 Minor update available for module photoswipe (5.0.9). Release: AI (Artificial Intelligence) 1.4.8 Minor update available for module ai (1.4.8). Release: AI (Artificial Intelligence) 1.3.13 Minor update available for module ai (1.3.13). Release: Moderated Content Bulk Publish 2.0.53 Minor update available for module moderated_content_bulk_publish (2.0.53). Release: Mailchimp 2.2.9 Minor update available for module mailchimp (2.2.9). Release: Mailchimp 3.1.4 Minor update available for module mailchimp (3.1.4). Module Revived: Image field to media 3.0.2 Module image_field_to_media updated after 13 months of inactivity (3.0.2). Security Coverage: Analyze PostHog Module analyze_posthog now has official Drupal security advisory coverage.

Error Squelch

Security covered Drupal 10–11
View on drupal.org

This module hides Drupal status, warning, and error messages based on configured patterns, reducing visual clutter from persistent or noisy notifications. It allows for substring or regular expression matching, with optional logging of suppressed messages and Drush commands for management. The module provides a test mode to verify its functionality.

Suppresses Drupal status, warning, and error messages whose text matches configured patterns. Useful for hiding persistent test-mode notices, CI/CD log noise, and chatty third-party module warnings that clutter screenshots, training videos, and on-call dashboards.

What it does

Filters $variables['message_list'] at hook_preprocess_status_messages() against an admin-configured list of patterns (substring or PHP regex). Matched messages are removed before the status messages template renders. Suppression is purely cosmetic; the underlying cause of any message is not addressed.

Key features

  • Substring match (case-insensitive, default) or PHP regex with delimiters
  • Optional logging of suppressed messages to the error_squelch channel for audit trails
  • Drush commands for managing patterns from the CLI: drush error-squelch:list / add / remove (aliases esl / esa / esrm)
  • Test mode injects a known status message visible only to users with the Administer Error Squelch permission, so operators can verify the filter is working before deploying patterns to production
  • Modern Drupal patterns: OO hooks via #[Hook], #config_target throughout the form, Drush 12+ command layout

When to use it

Reduce noise from known-benign messages while a proper fix is pending: a payment gateway's hardcoded "running in test mode" notice, missing-file warnings during an in-progress media sync, chatty contrib modules with unhelpful defaults. Not a substitute for fixing the underlying issue; the suppressed message is gone but the condition that triggered it isn't.

Requirements

  • Drupal 10.3 or later, or Drupal 11
  • No additional modules required
  • Drush 11 or later (optional, only for the CLI commands)

What's next

Error Squelch is now covered by the Drupal Security Advisory policy.
Vulnerability reports go to [email protected]; see
the
Drupal Security Team procedures
for the disclosure process. Do not
report security issues through the public issue queue.

No further behavioural changes are planned for the 1.0.x line; future
work will track Drupal core compatibility and any reported bugs.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Apr 30, 2026
1.0.0-rc1 Pre-release 10–11 Apr 26, 2026
1.0.0-beta1 Pre-release 10–11 Apr 22, 2026
1.0.0-alpha3 Pre-release 10–11 Apr 22, 2026
1.0.0-alpha2 Pre-release 10–11 Apr 21, 2026
1.0.0-alpha1 Pre-release 9–11 Apr 20, 2026
1.0.x-dev Dev 10–11 Apr 20, 2026