In promotion_form_submit(), drupal_goto() is used to redirect after the form has been submitted. However, it is better to return the path and let the Forms API do the redirect. This will allow other modules to use #submit when altering promotion_form and be called on submission.
| Comment | File | Size | Author |
|---|---|---|---|
| promotion-submit.patch | 543 bytes | decafdennis |
Comments
Comment #1
zostay commentedThanks!
I'll try it out and look into applying it for the next release.
Comment #2
zostay commentedPatch works as advertised. I will apply it shortly.
Comment #3
zostay commentedApplied to HEAD and will be part of the 1.8 release.
Comment #4
(not verified) commented