diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-09-11 00:03:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-09-11 00:03:42 +0000 |
commit | 7cc3d92d65cccf7e09943312b7fa28642372d4c9 (patch) | |
tree | 0bc09ca5d76dc48f67935304bb1a9c24c0ea8b73 /includes | |
parent | 3b21e82a3770c61ad64062204c33911c42e19d7e (diff) | |
download | brdo-7cc3d92d65cccf7e09943312b7fa28642372d4c9.tar.gz brdo-7cc3d92d65cccf7e09943312b7fa28642372d4c9.tar.bz2 |
#616240 follow-up by yched, dereine, marvil07: Make Field UI screens extensible from contrib - part II.
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 |