This should really help me out. Maybe it will help others too.

CommentFileSizeAuthor
#3 1046394-3.patch2.89 KBJohnAlbin
add_classes.patch598 bytesn8tron
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JohnAlbin’s picture

Dude! I was just pondering investigating how to do this! :-)

pixelite’s picture

Status: Needs review » Reviewed & tested by the community

The patch works for me and would be really useful.

JohnAlbin’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2.89 KB

Looking 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().

JohnAlbin’s picture

Status: Needs review » Fixed

I left the classes out of the blocks.css in the previous patch. Updated and committed.

http://drupal.org/cvs?commit=499074

JohnAlbin’s picture

Version: 7.x-3.x-dev » 6.x-2.x-dev
Status: Fixed » Patch (to be ported)

Backporting to 6.x-2.x.

JohnAlbin’s picture

Status: Patch (to be ported) » Fixed

Here'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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.