Closed (fixed)
Project:
Workflow
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2008 at 22:41 UTC
Updated:
23 Nov 2013 at 15:57 UTC
Jump to comment: Most recent
Guys,
I'm trying to learn the Drupal API, but I'm struggling. I'd like to *not* show the workflow section in the node/add and node/edit forms, and show it (when content exists) only as a tab on the node (node/[node:nid]/workflow).
Can someone advise on how to do this?
Note: I realize that with 5.x-2.x, this is easy, but we are stuck with 5x.-1.2 for now. We also have to turn on the administer content types permission, which makes these forms appear in node/add and node/edit.
Thanks,
TC
Comments
Comment #1
ifbyphone1 commentedAnswering my own question. I snuck a peek at how the form portion could be turned off selectively in the 5.x-2.x version. I simply changed the code as indicated below:
Comment #2
ifbyphone1 commentedCorrecting myself above, and setting this as fixed when finished.
If you don't want workflow to appear on the standard form for node/x/edit or node/add, then you must delete function workflow_form_alter entirely. The workflow tab will still work as expected. Using my code above will screw things up, but deleting the function is fine.
To reiterate, this is for 5.x-1.2
Comment #3
johnvFor some reason, this issue is back to active, probably after the upgrade of d.o. to D7