I have a site where I have rearranged some of the ezmlm subscription form elements. This causes validation and submission to break. Here is a patch that fixes the issue. It's not perfect, either; maybe the right way to do it would be to put the mailing list checkboxes into a subelement and use #tree.
| Comment | File | Size | Author |
|---|---|---|---|
| ezmlm-6.x-1.1_robust_submit.patch | 848 bytes | HorsePunchKid |
Comments
Comment #1
hutch commentedThanks for the patch, I'll have a look at it shortly.
Comment #2
hutch commentedI have added theming for the form in the latest dev version, this is a much better way to reorganise the form without breaking the validate and submit functions. See function theme_ezmlm_subscribe_form() where you can change the order of elements without altering the keys, using '#weight'.
function theme_ezmlm_subscribe_form() should be copied to your theme's template.php, appropriately renamed and altered there.
Comment #3
hutch commented