Needs review
Project:
Junk
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2011 at 09:22 UTC
Updated:
5 Mar 2011 at 11:31 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| junk.module.patch | 2.57 KB | quotesbro |
Comments
Comment #1
quotesbro commentedMy mistake - I used text 'Junk node' instead of 'Move to junk' in function junk_action_info().
Comment #2
AliraSirin commentedThe patch seems OK, thank you. I will include this new functionality in new release, though I think I won't roll it right now.