Last friday webchick was asking about these modules in #drupal-contribute. merlinofchaos mentioned his ERS module and I was intrigued by it's entity_type agnostic approach. http://drupal.org/project/ers
Over the weekend I wrote an attempt to merge ERS with the exportables I started working on in http://drupal.org/node/1376258 and state machine.
The result so far is in the workbench_moderation branch 7.x-2.x-unstable-ers-state-machine.
The relevant module is workbench_machine which provides a class that extends the state_machine base class an uses the CTools exportables from http://drupal.org/node/1376258 to provide state and event configuration.
I also had to modify ERS to use the concept of states as workbench_moderation does. ERS current has the concept of a "published" vid and a "draft" vid. So for nodes that means the "published" vid is the one in the node table and the draft vid is the one that is editable. This is a potential source of confusion as ERS' usage of the words draft and published is different from what they mean in the Workbench Moderation world. I'll post a patch here of the changes I made to ERS. It includes some terminology changes.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ers_1398994.patch | 15.5 KB | stevector |
Comments
Comment #1
stevectorHere are the changes I made to ERS to make this work. If this approach is viable, I'll likely make a sandbox to house these changes to ERS.
Comment #2
stevectorI've added a sample Feature module to automatically create Workbench states, events, and workflows to the branch workbench_moderation branch 7.x-2.x-unstable-ers-state-machine. CTools exportables makes featurizing these things super easy.
I've also deleted in this branch all the files from 1.x workbench_moderation so that the focus of this branch is clearer.
Comment #3
stevectorI have started a sandbox project to this end : http://drupal.org/sandbox/stevector/1405838