Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the User edit form changing the active blocks for any user doesn't save when the form is submitted. If the block is off by default there is no way to turn it on and vice versa.
Comment | File | Size | Author |
---|---|---|---|
#4 | user_edit_2.patch | 3.19 KB | chx |
#3 | user_edit_1.patch | 327 bytes | chx |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedyup. confirmed ... perhaps whomever did the blocks form api port could investiage?
Comment #2
chx CreditAttribution: chx commentedComment #3
chx CreditAttribution: chx commentedThe cause is darn simple: the form is not called upon update hence the value submitted gets lost. form_edit needs a rewrite to submit model. Meanwhile, this simple patch lets you set but not clear a block. Ie. this is mandatory but not enough.
Comment #4
chx CreditAttribution: chx commentedLet's see this one. I'll open a task for 4.8 to clean this a bit but I did not want to change API for user_save at this stage.
Comment #5
chx CreditAttribution: chx commentedIf we want hook_user 'form' to actually work, we can not release 4.7 without this one.
Comment #6
chx CreditAttribution: chx commentedalso note http://drupal.org/node/39786 which is the same problem.
Comment #7
Cvbge CreditAttribution: Cvbge commentedI've tested and it works as advertised
Comment #8
chx CreditAttribution: chx commentedI talked with Cvbge and he tried block and contact settings. This means that everything should work, so... status change!
Comment #9
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #10
(not verified) CreditAttribution: commented