Setting weight of the newsletter checkbox in user register form is inpossible or it is overridden by simplenews_form_user_register_form_alter() in simplenews.module ('#weight' => 5).
As workaround one can use negative weight for the rest of the user register fields.
But It would be nicer to set this field (checkbox $form['simplenews']['subscriptions']) more flexibly.
Than you.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | setting_weight_of_the-2529172-4-interdiff.txt | 380 bytes | mbovan |
| #4 | setting_weight_of_the-2529172-4.patch | 840 bytes | mbovan |
| #2 | setting_weight_of_the-2529172-2.patch | 869 bytes | mbovan |
Comments
Comment #1
hermann77 commentedComment #2
mbovan commentedHope this patch will fix the bug.
Comment #4
mbovan commentedRemoving visible property for form. Tests are passing locally for me...
Comment #6
mbovan commentedRetested... Tests are green now.
Comment #8
giancarlosotelo commentedLooks good.
Comment #11
berdirCommitted, thanks.