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.
Problem/Motivation
The attached patch is probably self-explanatory.
block_admin_configure()
uses the value -1
to test whether a block is in a region or not.
Maybe we should use the constant BLOCK_REGION_NONE
instead of -1
, in case one day we want to change the value of BLOCK_REGION_NONE
.
Proposed resolution
Use BLOCK_REGION_NONE
instead of -1
. See patch.
Remaining tasks
Review/test/advise about the patch.
Comment | File | Size | Author |
---|---|---|---|
block_region_none_instead_of_-1.patch | 716 bytes | fengtan | |
Comments
Comment #2
Sharique CreditAttribution: Sharique as a volunteer commentedThis sounds good idea and patch looks good.