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.
This should really help me out. Maybe it will help others too.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1046394-3.patch | 2.89 KB | JohnAlbin |
add_classes.patch | 598 bytes | n8tron |
Comments
Comment #1
JohnAlbinDude! I was just pondering investigating how to do this! :-)
Comment #2
pixeliteThe patch works for me and would be really useful.
Comment #3
JohnAlbinLooking at that block_list() part of the patch, I realize it won't work for Context module or other techniques that place blocks without using the block module.
I've modified the technique so that it finds the last block in the region during hook_page_alter().
Comment #4
JohnAlbinI left the classes out of the blocks.css in the previous patch. Updated and committed.
http://drupal.org/cvs?commit=499074
Comment #5
JohnAlbinBackporting to 6.x-2.x.
Comment #6
JohnAlbinHere's the fix I committed. It doesn't add "last" class if you are using Context module (for the reasons stated in #3 above).
http://drupal.org/cvs?commit=501136