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.
- http://drupal.org/node/1151704
This is my first documentation page for Drupal.org. I hope I've not made too many mistakes. I'm flagging it up here, so others can check if it is a useful page, and if I've put it in the right place.
The page was originally written for my blog, but I've had a change of heart and think I'd prefer to contribute stuff like this directly to Drupal.org wherever appropriate. I hope it is appropriate.
Comments
Comment #1
arianek CreditAttribution: arianek commentedtag
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is nifty trick. Your write up is clear and engaging. I'll need to try this out myself, but one question that immediately jumps to my mind: because you are replacing the region variable with a function call, does that prevent region highlighting on the block admin page?
Comment #3
Mark Nielsen CreditAttribution: Mark Nielsen commentedThanks for your kind feedback, FilmKnurd.
I'm using this technique on a couple of sites, and I've not noticed that I'm missing the region highlighting. "My" code was partly put together by studying others'. From somewhere, I've decided to append drupal_get_content() to the list of blocks. I'm wondering if the region highlighting is added by that.
I'm actually about to do some further work on this, so I'll double check things.