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.
Now that hook_hook_info is implemented, the code from the workflow_rules.module file can be moved into workflow_rules.workflow.inc. Unfortunately, in D7, the empty module file is required, but in D8 it isn't anymore.
Also, now that workflow_field is working, we need to port the Node API actions and conditions to their accompanying Field API variant.
Comments
Comment #1
johnvPatch "Added support for Workflow Field to workflow_rules sub-module." is committed here.
It contains the following:
- the hook implementation is moved from the .module file to the .workflow.inc file
- Rules conditions and actions are duplicated. We now have conditions and actions for both Node API and Field API, both in their own files.
- Helper functions are adapted.
- Main modules are changed where necessary.
Comment #2
johnvUnfortunately, the above patch supports only 'node' entities. Although my test system contains several other entity types, I did not manage to get Entity tokens working in the Rules module.
Comment #3.0
(not verified) CreditAttribution: commentedchanged.