This project is not covered by Drupal’s security advisory policy.
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.
Supporting organizations:
Project information
- Project categories: Administration tools, Automation, Content editing experience
- Ecosystem: Content moderation
1 site reports using this module
- Created by estoclet on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

