If a block is enabled for insertion, and its region is changed inside its configuration form, it is possible that the block will be configured to be inserted into a block in another region.
When this happens, there should be a validation error telling the user that the target block is required if the block is enabled for insertion.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | handle_region_change-3096706-2.patch | 28.31 KB | Ben Greenberg |
Comments
Comment #2
Ben Greenberg commentedAdded patch
Handling the change in region meant having to alter the structure of the array saved in the target_blocks column of the block_in_block table. For example:
The patch includes a hook_update_N function to update the data in every existing record's target_blocks column to the new structure.
Comment #4
Ben Greenberg commentedComment #5
Ben Greenberg commented