Closed (fixed)
Project:
Basic
Version:
7.x-2.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2011 at 21:11 UTC
Updated:
5 Jul 2011 at 23:41 UTC
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 commentedThis is rolled into the D7 patch for issue: http://drupal.org/node/1138206
Comment #2
damiankloip commentedPatch for above issue to go into next 3.x release instead. This bug fix has been committed.
Comment #3
damiankloip commented