Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

confirm_unpublish

206 sites No security coverage
View on drupal.org

Confirm Unpublish adds a confirmation dialog when unpublishing nodes to prevent accidental content removal. Site administrators can optionally enable logging to the database log (watchdog) when a user accepts the confirmation prompt.

By default, the confirmation dialog is shown for all content types. However, administrators can selectively exclude specific content types from this behavior through the module’s configuration form.

Requirements

This module requires no modules outside of supported versions of Drupal core.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

The configuration form is located at:

/admin/config/content/confirm-unpublish

From here you can:

  • Customize the confirmation message displayed when unpublishing a node.
  • Enable or disable logging to the Recent Log Messages report.
  • Exclude specific content types from the confirmation behavior.

When enabled, the confirmation dialog appears only for content types
not excluded in the configuration. All types are included by default.

If logging is enabled, a message is recorded in the database log
(/admin/reports/dblog) each time a user accepts the unpublish confirmation.

Troubleshooting & FAQ

Q: The dialog isn’t showing up for a content type.

A: Make sure the content type is not excluded in the module’s configuration settings.

Q: Does this module actually prevent unpublishing?

A: No. It adds a confirmation dialog to reduce mistakes, but users can still proceed to unpublish after confirming.

Q: What gets logged when logging is enabled?

A: The log includes the user name and node path for each confirmed unpublish event.

Activity

Total releases
8
First release
May 2025
Latest release
7 months ago
Release cadence
18 days
Stability
88% stable

Release Timeline

Releases

Version Type Release date
1.0.6 Stable Sep 3, 2025
1.0.5 Stable May 7, 2025
1.0.4 Stable May 7, 2025
1.0.3 Stable May 6, 2025
1.x-dev Dev May 6, 2025
1.0.2 Stable May 5, 2025
1.0.1 Stable May 2, 2025
1.0.0 Stable May 2, 2025