Hello again,

I'm attaching a patch that adds 2 actions: junk_junk_node_action (moves nodes to junk) and junk_restore_node_action (restores nodes from junk). Actions can be used with VBO module.
I have placed the code that actually performs "junk" and "restore" job into separate functions (junk_junk() and junk_restore()) as well.

And I guess since we have integration with Rules and VBO modules, we should place the code responsible for these features into separate .inc files.

Thanks.

CommentFileSizeAuthor
junk.module.patch2.57 KBquotesbro

Comments

quotesbro’s picture

My mistake - I used text 'Junk node' instead of 'Move to junk' in function junk_action_info().

AliraSirin’s picture

The patch seems OK, thank you. I will include this new functionality in new release, though I think I won't roll it right now.