In the state editing form, additional submit handlers (the ones I add using hook_form_alter) cannot determine the $sid of the state if the form is used to add a new state.
Attached patch makes the $sid available to additional submit handlers via the $form_state variable.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | save_sid_and_wid_to_form_state.patch | 1.03 KB | traxer |
| save_sid_to_form_state.patch | 701 bytes | traxer |
Comments
Comment #1
traxer commentedAlthough the $wid of new workflows can be parsed from $form_state['redirect'] (in the form for adding workflows), it might be cleaner to record the $wid explicitly as well.
Comment #2
jvandyk commentedCommitted. Thanks.