Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Confirm Unpublish

212 sites No security coverage Drupal 10–11
View on drupal.org

This module adds a confirmation prompt before unpublishing content to prevent accidental removal. It offers optional logging of unpublish events and allows administrators to exclude specific content types from the confirmation prompt.

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.

Depends on

Dependencies of the latest stable release

  • node Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
8
Tracked since
May 2025
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 7
Maintenance
Slowing

Release Timeline

Releases

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