Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

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.

Activity

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

Release Timeline

Releases

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