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.
Simple request with a simple patch, it looks like 6.x-1.3 had more access checks on the available blocks, so to reproduce the functionality and to add the ability to have custom modules modify the list of available blocks I simply want to add a drupal_alter() to pass the $available_blocks array to any other modules before the items are rendered.
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal_alter_allowed_blocks-1781796-1.patch | 439 bytes | Deciphered |
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedPatch.
Comment #2
drummStill applies to the 7.x-2.x branch, which is maintained. And I think this might be valid D7 code. Needs testing.
Comment #3
drummComment #4
AnybodyI can confirm this still works on 7.x-2.x-dev (and stable) and still makes a lot of sense. RTBC!
Comment #5
drummThanks for the review, committed!
Comment #7
AnybodyThis should also be ported to the Drupal 8 / 9 version. Quite useful feature.