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

  1. Create a book and add chapters or pages as children.
  2. Update the moderation state of the book (e.g., set it to "Published").
  3. All child nodes will automatically inherit the same moderation state.

Child Deletion

  1. Enable the delete_children_on_book_delete option in the module's configuration.
  2. Delete a book.
  3. 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

Releases