By mudd on
I'm new to Drupal, and I'm using workflow. (I may also use Rules module)
I'd like to create a block that contains links that change (transition) the workflow state. It would be nice if I could also style the links based on the current state. This would allow transitions without going into the Edit node views. So essentially I'd like to show the block based on the role/author and show/style links based on workflow permissions.
Any advice? Thank you.
Comments
workflow state change by links on a page or in a block - Hook?
Ok, let me put this another way...
What is the PHP code that would hook into [drupal-something] that would cause the state change? I realize that this has to happen a very specific way as to force the state change to conform to all the [module hooks] that adhere to permissions, allowable transitions, etc. I guess this would be the equivalent to clicking the target-state radio button on the workflow tab and saving.
Also desired is the PHP to query existing state and available transitions, so links can be generated and styled.
(If this isn't already a 3rd party module then I think it's a great idea, but I admit I'm too junior yet to take on this task.)
Can somebody point me to a documentation snippet on workflow hooks that might help me sort this out? Thanks!
I agree with this idea.
I agree with this idea. Actually I am looking for such a solution....
+1
Big +1
A huge +1 for this. I need to code this myself right now in fact.
Me too
I'm looking for something like this too. Let me know if you get something written.
Any progress on this?
I found this thread via a search and I'm wondering if a solution was found. This would be very useful for a current project that I am working on.
Subscribing
I am searching for something similar to change the workflow status from a casetracker´s case
Keep on