From 7cc3d92d65cccf7e09943312b7fa28642372d4c9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 11 Sep 2010 00:03:42 +0000 Subject: #616240 follow-up by yched, dereine, marvil07: Make Field UI screens extensible from contrib - part II. --- includes/theme.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'includes') 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 .= ' '; @@ -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 -- cgit v1.2.3