Drupal is a registered trademark of Dries Buytaert
cms 2.1.0 Update released for Drupal core (2.1.0)! menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.0 Minor update available for module eca (3.1.0). sophron 3.1.1 Minor update available for module sophron (3.1.1). ai 1.3.1 Minor update available for module ai (1.3.1). seven 2.0.0-beta6 New beta version released for theme seven (2.0.0-beta6). seven 1.0.1-beta1 First beta version released for theme seven (1.0.1-beta1). editoria11y 3.0.0-beta7 New beta version released for module editoria11y (3.0.0-beta7). modeler_api 1.1.0 Minor update available for module modeler_api (1.1.0). form_mode_control 8.x-2.6 Minor update available for module form_mode_control (8.x-2.6). symfony_mailer_log 1.2.4 Minor update available for module symfony_mailer_log (1.2.4). cms_content_sync 3.2.1 Minor update available for module cms_content_sync (3.2.1). modal_page 5.1.9 Minor update available for module modal_page (5.1.9). drupal_cms_helper 2.1.0 Minor update available for module drupal_cms_helper (2.1.0). eca 3.1.0-rc1 First release candidate for module eca (3.1.0-rc1). book 3.0.1 Minor update available for module book (3.0.1). domain_theme_switch 3.0.0 Major update available for module domain_theme_switch (3.0.0). cms_content_sync 3.2.0 Minor update available for module cms_content_sync (3.2.0). editoria11y 3.0.0-beta6 New beta version released for module editoria11y (3.0.0-beta6). forum 1.0.6 Minor update available for module forum (1.0.6).

A comprehensive module that currently integrates OpenAI's latest Omni moderation API with advanced custom policies, enhanced Views integration, and sophisticated status management to automatically validate and flag inappropriate comments based on configurable rules.

Features

Latest OpenAI Omni Models Integration: Integration with OpenAI's newest omni-moderation-latest model for superior accuracy and multimodal support. Enable/disable specific OpenAI moderation categories (hate speech, harassment, violence, etc.)




Intelligent Status Management: Risk-based automatic status assignment (high/medium/low priority) based on confidence scores with comprehensive workflow statuses including auto_flagged_high, auto_flagged_medium, flagged_low_risk, and pending_review.

Advanced Custom Policies: Beyond OpenAI moderation, includes keyword filtering, length restrictions, rate limiting, competitor detection, marketing content identification, and PII protection (emails, phones, SSNs, credit cards, addresses).

Enhanced Views Integration: Seamless integration with Drupal's /admin/content/comment/approval view featuring color-coded status badges, priority indicators, advanced filtering options, and visual flagged/clean indicators.

Post-moderation Capabilities: Allow community members to flag published comments with escalation workflows and comprehensive audit trails for all moderation decisions.

Post-Installation

After installation, navigate to Configuration → OpenAI Comment Moderation (/admin/config/comment-moderation-ai) to configure the module:

  1. OpenAI API Setup: Enter your OpenAI API key and select your preferred moderation model (omni-moderation-latest recommended). Use the built-in connection test to verify your API setup.
  2. Core Moderation Settings: Enable moderation, configure auto-flagging and auto-unpublishing behaviors, and set sensitivity thresholds (0.0 to 1.0).
  3. OpenAI Categories: Enable/disable specific moderation categories like hate speech, harassment, self-harm, sexual content, and violence.
  4. Custom Policies: Configure additional rules including keyword filtering, length restrictions, rate limiting, competitor detection, marketing content blocking, and PII protection.
  5. Permissions: Set up user permissions at /admin/people/permissions for viewing flagged comments, moderating content, and bypassing moderation checks.

Once configured, the module automatically moderates new comments and enhances your existing comment approval workflow at /admin/content/comment/approval with visual status indicators and advanced filtering options.

Additional Requirements

  • OpenAI API Key: Required for AI-powered moderation features. Sign up at OpenAI Platform
  • PHP 8.3+: Required for optimal performance with regex operations and modern PHP features
  • PHP cURL Extension: Essential for API communication with OpenAI services
  • Comment Module: Must be enabled (Drupal core dependency)
  • Key Module: For secure API key storage and management

The module integrates with Drupal's core comment system and requires no additional external libraries beyond the OpenAI API access.

  • Devel: Helpful for debugging moderation workflows and testing custom policies during development
  • Admin Toolbar: Provides quick access to moderation configuration and flagged comments management
  • Views Bulk Operations: Enhances bulk moderation actions for processing multiple flagged comments efficiently
  • Mailsystem: Improves email notification formatting for moderation alerts and flag notifications
  • Token: Enables dynamic token replacement in notification emails and moderation messages

What differentiates this module is its integration with OpenAI's latest Omni models, comprehensive custom policy engine, intelligent risk-based status management, and seamless Views integration for efficient moderation workflows.

Community Documentation

  • Comprehensive README: Detailed documentation included with the module covering all features, configuration options, and troubleshooting guides
  • API Documentation: Inline code documentation for developers wanting to extend or integrate with the module

Activity

Total releases
2
First release
Mar 2026
Latest release
20 hours ago
Release cadence
0 days
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable Mar 23, 2026
1.0.0 Stable Mar 23, 2026