In the D7 version of this module, the "unpublish" button does not appear on the node edit form. When looking at the code in this module, it seems that the code for this functionality is incomplete. The attached patch attempts to rectify that but in doing so probably borked the unpublish link method.

I'm not even sure the 'link' method is really required as you can create custom link fields in Views which point to 'node/NID/unpublish' and then have the confirmation form (restored in this patch) appear. This is the same manner in which the core node delete button / functionality works.

CommentFileSizeAuthor
content_unpublish_button.patch4.16 KBstella

Comments

muschpusch’s picture

Issue summary: View changes
Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

Tested and looks good. Setting this to critical since the module is useless without it

amitaibu’s picture

I'm pretty amazed people are using this module -- I completely forgot about it ;)

Anybody up for maintainership?

muschpusch’s picture

yep if you review #2172769: Node views handler not working i would be up for maintainership... At least committing the most important fixes and cleaning up a bit.