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.

Comments

hermann77’s picture

Issue summary: View changes
mbovan’s picture

Status: Active » Needs review
StatusFileSize
new869 bytes

Hope this patch will fix the bug.

Status: Needs review » Needs work

The last submitted patch, 2: setting_weight_of_the-2529172-2.patch, failed testing.

mbovan’s picture

Status: Needs work » Needs review
StatusFileSize
new840 bytes
new380 bytes

Removing visible property for form. Tests are passing locally for me...

Status: Needs review » Needs work

The last submitted patch, 4: setting_weight_of_the-2529172-4.patch, failed testing.

mbovan’s picture

Status: Needs work » Needs review

Retested... Tests are green now.

The last submitted patch, 2: setting_weight_of_the-2529172-2.patch, failed testing.

giancarlosotelo’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

The last submitted patch, 2: setting_weight_of_the-2529172-2.patch, failed testing.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: setting_weight_of_the-2529172-4.patch, failed testing.

berdir’s picture

Status: Needs work » Fixed

Committed, thanks.

  • Berdir committed 76e05ea on authored by mbovan
    Issue #2529172 by mbovan: Setting weight of the newsletter checkbox in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.