I was wondering what the best method would be to include the 'change state' workflow form for an authorised user viewing a node (not switching to the either the edit or workflow tabs). The only way I can think of is to edit the node's template and inject the form onto the page. But to me, this seems a bit illogical making such a change via a theme file.

Comments

jvandyk’s picture

See the workflow_form_alter() function to see how the workflow form is introduced into the node editing form. The same approach could be used to place the form elsewhere.

avpaderno’s picture

Version: 6.x-1.0-rc1 » 6.x-1.1
Bastlynn’s picture

Status: Active » Closed (won't fix)

There's no current in-code way to do this, you would need to roll your own module to fix it. If you look at the code in form_alter, and add it on the view op of hook_nodeapi you should be able to do this.

Since this request is over a year old, I'm going to assume you've gotten things worked out in the meantime. If not, then open a request for the Drupal 7 version of the module and I'll take a look at it.

johnv’s picture

Issue summary: View changes

The Workflow Extensions module contains this functionality.
In D7 you can have the Workflow Form/Widget on the View page itself.