Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module allows users to unpublish content using a url placed anywhere in a Drupal site
Basically all you have to do the following:
To unpublish a node whose nid is 15 use the following code:
<a href="<?php print base_path().'url_unpublish/15';?>">Unpublish Node</a>
You will be redirected to an unpublish confirmation page, and once you click unpublish the node will be unpublished
You can use the code in your views, blocks or any part of the site
To unpublish nodes without leaving the current page do the following:
- Install the Popups module
- Add content selector to your theme correctly as explained in the Popups module readme file
- Add the "popups-form" class you your url
<a href="<?php print base_path().'url_unpublish/15';?>" class="popups-form">Unpublish Node</a>
Your nodes will be unpublished and the page automatically updated using ajax without refreshing the page
This module was developed and sponsored by JesoX
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Content Editing Experience
- 136 sites report using this module
- Created by compujohnny on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.1
released 11 May 2012
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 11 May 2012 at 12:49 UTC