Would be very nice if Fasttoggle also supported delete function.

CommentFileSizeAuthor
#1 820418-fasttoggle-delete.patch5.43 KBsnufkin

Comments

snufkin’s picture

Status: Active » Needs review
StatusFileSize
new5.43 KB

Here is an initial patch, I cant add the new handler file though into the patch :/ The reason why I created a custom handler was that the module normally just flips something in the node object, whereas delete is not a field, but just an action. You cant see deleted nodes in a list. If you apply the patch you'll be able to delete nodes from a list made with views, the text will change to deleted. Ideally I would look for a way to trigger other modules to act on the change, so developers can remove the row for example from the table.

I would appreciate some feedback on my approach.

Here is the code for the handler: http://pastie.textmate.org/private/b0hlsjkroyaduebnlu4sg

crea’s picture

Flag module is much better for this type of stuff

nigelcunningham’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)