Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Configuration Language Lock 1.0.2 Minor update available for module config_language_lock (1.0.2). Release: Canvas Override 1.0.1 Minor update available for module canvas_override (1.0.1). Release: Media Remote Image 8.x-1.2 Minor update available for module media_entity_remote_image (8.x-1.2). Release: IDNA Convert Service (punycode) 2.0.4 Minor update available for module idna (2.0.4). Release: Bootstrap Cloud 7.1.3 Minor update available for theme bootstrap_cloud (7.1.3). Release: Token Browser 1.0.2 Minor update available for module token_browser (1.0.2). Release: Varbase Project 11.0.8 Minor update available for module varbase_project (11.0.8). Release: Media Remote Image 2.0.0-beta1 First beta version released for module media_entity_remote_image (2.0.0-beta1). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Security Coverage: Module Scout Module module_scout now has official Drupal security advisory coverage.

OGCB Trash Group

3 sites No security coverage Drupal 11 · not 10

Part of the Ogcb ecosystem · 5 projects

View on drupal.org

This module integrates Drupal's Trash functionality with the Group module. When a group, a related entity, or a group relationship is trashed or restored, this module automatically handles the corresponding actions for all linked items. It ensures that trashing a group also trashes its entities and relationships, and vice versa, while also preventing infinite loops.

Overview

This module was developed as part of the Open Government Community Builder (OGCB) project and is tailored to its needs. It can be used independently but may not cover every use case outside of OGCB.

Integrates the Trash module with the Group module. When an entity, group, or group relationship is trashed or restored, all related items follow automatically.

Scope: This module is built for 1-to-1 group relationships (one entity belongs to exactly one group). While the code iterates over all relationships in case there are multiple, the bidirectional cascade logic is not designed or tested for true 1-to-N scenarios.

Features

  • Group cascade: Trashing a group trashes all its relationships and their related entities. Restoring the group restores everything.
  • Entity / relationship cascade: Trashing an entity trashes its group relationships and vice versa. Restore works in both directions.
  • Delete confirmation form: Replaces the default "This action cannot be undone" text on group relationship delete forms with the same trash-aware description used by the Trash module.
  • Loop prevention: A shared re-entrancy guard prevents infinite cascades between entities and relationships.

Requirements

Configuration

For the cascade to work, enable trash for the relevant entity type bundles and their corresponding group relationship bundles at Administration → Configuration → Content → Trash.

No further configuration is needed. The hooks activate automatically once the module is enabled.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 11 Jun 22, 2026
1.0.0 Stable 10–11 Jun 11, 2026
1.0.0-alpha2 Pre-release 10–11 Apr 8, 2026
1.0.0-alpha1 Pre-release 10–11 Mar 10, 2026