Part of the Book ecosystem · 16 projects
This module synchronizes the moderation status between a book and its child pages, ensuring they all have the same status when a book's status is changed. It also offers an option to automatically delete child pages when a book is deleted.
Book Moderation Sync Module
The Book Moderation Sync module synchronizes moderation states between books and their children (chapters or pages) in Drupal. It leverages the book and content_moderation modules to manage relationships and moderation states effectively.
Features
- Moderation State Synchronization: When a book's moderation state is updated (e.g., published or archived), all its children inherit the same state.
- Child Deletion: Option to automatically delete child nodes when a book is deleted.
Usage
Moderation State Synchronization
- Create a book and add chapters or pages as children.
- Update the moderation state of the book (e.g., set it to "Published").
- All child nodes will automatically inherit the same moderation state.
Child Deletion
- Enable the
delete_children_on_book_deleteoption in the module's configuration. - Delete a book.
- All associated child nodes will be automatically deleted.
Configuration
The module provides a configuration option:
- Delete children when a book is deleted: If enabled, child nodes are deleted when their parent book is deleted.
Dependencies
- Book: Manages the hierarchical structure of books and their children.
- Content Moderation: Handles moderation states for nodes.
Technical Details
The module uses the following services and methods:
- BookManager: Manages book-related operations, such as adding nodes to a book.
- BookOutlineStorage: Handles the storage of book relationships.
- ModerationInformation: Provides moderation state information for entities.
Links
License
This project is licensed under the GPLv2 license.
Ask your assistant about Book Moderation Sync
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- book Drupal core
- content_moderation Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Book ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 10–11 | Jan 9, 2025 | ||
| 1.0.0-beta6 | Pre-release | 10–11 | Jan 8, 2025 | ||
| 1.0.0-beta5 | Pre-release | 10–11 | Jan 8, 2025 | ||
| 1.0.0-beta4 | Pre-release | 10–11 | Jan 8, 2025 | ||
| 1.0.0-beta3 | Pre-release | 10–11 | Jan 7, 2025 | ||
| 1.0.x-dev | Dev | 10–11 | Jan 6, 2025 | ||
| 1.0.0-beta2 | Pre-release | 10–11 | Jan 6, 2025 | ||
| 1.0.0-beta1 | Pre-release | 10–11 | Jan 6, 2025 | ||
| 1.0.0-alpha2 | Pre-release | 10–11 | Jan 5, 2025 | ||
| 1.0.0-alpha1 | Pre-release | 10–11 | Jan 5, 2025 |