This is my first pass at adding batch support to dialog forms. Meaning, if a form in a dialog sets a batch in it's submit handler, this patch allows the dialog processing to detect it and process the batch in the dialog.
To apply this patch you must apply the following patches also:
- http://drupal.org/node/1031640
- http://drupal.org/node/970536
I'm sure there is plenty to discuss and fix, but so far this is working for me. I've been able to run a number of different batches successfully in the dialog.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1031658_batches_from_dialog_forms2.patch | 14.03 KB | te-brian |
| batches_from_dialog_forms.patch | 11.73 KB | te-brian |
Comments
Comment #1
te-brian commentedThe above patch does not account for submit handlers attached to buttons. Trying to account for that. New patch inc.
Comment #2
te-brian commentedThis patch adds a new property to $form_state to know for sure if the form is in a dialog.
It also handles submit handlers a lot better and will handle submit handlers attached to buttons and other input elements.
Comment #3
devin carlson commentedDialog 6.x is no longer supported.