Provide a steps 1-_ on how to get it working.
Edit block in theme dir, enable module, go to block page & add class, ect...

CommentFileSizeAuthor
#1 block_class_readme.patch548 bytesclemens.tolboom

Comments

clemens.tolboom’s picture

StatusFileSize
new548 bytes

The readme is added but contains an error.

The call to block_class should get the block from the $variables like

    $variables['block_classes'] .= ' '. block_class($variables['block']);
todd nienkerk’s picture

Title: add readme file to distribution » Add README file to distribution
Assigned: Unassigned » todd nienkerk
Status: Active » Fixed

clemens.tolboom: Good catch! I'll commit this shortly.

brad.bulger’s picture

also, isset() should be testing $variables['block_classes'] not 'block_class' (right? unless i'm missing something)

todd nienkerk’s picture

Brad Bulger: Another good catch.

After reviewing the README file, however, it's clear that template_preprocess_block() should be implemented inside the module itself instead of requiring the user to add it to their theme. (The user must still add $block_classes to their block.tpl.php file, of course.)

I'll submit the changes to README and the module shortly.

Status: Fixed » Closed (fixed)

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