Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a content type that uses node field. I am trying to programmatically change state of node and add comment to the transition. I've looked all through D.o and workflow module documentation but don't see an example of doing this. I am currently changing state by loading the noded updating the SID of saving it. I feel this approach is kind of sloppy and don't see how I would add comment to the transition if this is the proper way to do it.
Comments
Comment #2
johnvDid you check the open issues on this matter?
Also the workflow.api.php file has been amended.
Comment #3
johnvSee also workflow_execute_transition() and it's documentation.
Comment #4
johnvPlease see #2324015: How to programmatically use Workflow module