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.
It's possible for a block to not be enabled, for example if the user has opted not to show it in their profile. So let's not do all the path-finding logic unless we have to.
Comment | File | Size | Author |
---|---|---|---|
block_enabled.patch | 833 bytes | webchick | |
Comments
Comment #1
mfer CreditAttribution: mfer commentedsimple and it works. Nice savings on some sql queries.
Comment #2
mfer CreditAttribution: mfer commentedComment #3
Dries CreditAttribution: Dries commentedActually, I think we can make this a global if. That is, we can simplify/streamline the code further.
Comment #4
catchstill applies with some fuzz and offset.
Comment #5
dpearcefl CreditAttribution: dpearcefl commentedIs this still a problem in current D6?
Comment #6
dpearcefl CreditAttribution: dpearcefl commented