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.
currently adds the class block-odd to all blocks.
here's the corrected code will roll into a patch if needed
<?php
function basic_preprocess_block(&$vars, $hook) {
// Add a striping class.
$vars['classes_array'][] = 'block-' . $vars['block_zebra'];
}
?>
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedThis is rolled into the D7 patch for issue: http://drupal.org/node/1138206
Comment #2
damiankloip CreditAttribution: damiankloip commentedPatch for above issue to go into next 3.x release instead. This bug fix has been committed.
Comment #3
damiankloip CreditAttribution: damiankloip commented