Posted by mikeytown2 on March 13, 2009 at 1:50am
| Project: | Block Class |
| Version: | 6.x-1.1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Todd Nienkerk |
| Status: | closed (fixed) |
Issue Summary
Provide a steps 1-_ on how to get it working.
Edit block in theme dir, enable module, go to block page & add class, ect...
Comments
#1
The readme is added but contains an error.
The call to block_class should get the block from the $variables like
<?php$variables['block_classes'] .= ' '. block_class($variables['block']);
?>
#2
clemens.tolboom: Good catch! I'll commit this shortly.
#3
also, isset() should be testing
$variables['block_classes']not 'block_class' (right? unless i'm missing something)#4
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_classesto theirblock.tpl.phpfile, of course.)I'll submit the changes to README and the module shortly.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.