Currently a Rules event is being invoked at the end of webform_workflow_transition(). While this is great for those who use Rules, I don't see any way for other code to run on state transition.

I'd like to see a hook invoked there for custom modules to implement.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dtarc created an issue. See original summary.

dtarc’s picture

dtarc’s picture

pjcdawkins’s picture

Assigned: dtarc » Unassigned
Status: Needs review » Reviewed & tested by the community
lambic’s picture

This hook was giving us problems when anything triggers token replacement, as that triggers a submission render, which tries to build the state form and ends up doing a redirect that kills everything. This patch addresses that by not rendering the form if the format is 'text'.