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.
Block does not show in admin list.
If you programatically create a block using hook_block_info(); it will not show in the admin list under the following circumstances
- If you set Status to true & you do not have Region set at all
One way to fix this is to separate status and region check in the _block_rehash() function
Patch to follow
Comment | File | Size | Author |
---|---|---|---|
#1 | seperate_status_and_region_check.patch | 948 bytes | gamelodge |
Comments
Comment #1
gamelodge CreditAttribution: gamelodge commentedPatch attached
Comment #2
gamelodge CreditAttribution: gamelodge commentedComment #3
gamelodge CreditAttribution: gamelodge commented