diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 9a2cc0fe0..5a7b591f8 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1560,6 +1560,8 @@ function theme_breadcrumb($variables) { * associative array with the following keys: * - "data": an array of cells * - Any HTML attributes, such as "class", to apply to the table row. + * - "no_striping": a boolean indicating that the row should receive no + * 'even / odd' styling. Defaults to FALSE. * Each cell can be either a string or an associative array with the * following keys: * - "data": The string to display in the table cell. @@ -1728,8 +1730,10 @@ function theme_table($variables) { } if (count($cells)) { // Add odd/even class - $class = $flip[$class]; - $attributes['class'][] = $class; + if (empty($row['no_striping'])) { + $class = $flip[$class]; + $attributes['class'][] = $class; + } // Build row $output .= ' <tr' . drupal_attributes($attributes) . '>'; @@ -1999,7 +2003,7 @@ function theme_indentation($variables) { /** * Returns HTML output for a single table cell for theme_table(). - * + * * @param $cell * Array of cell information, or string to display in cell. * @param bool $header |