You are here

function theme_ds_multigroup_horizontal_line in Display Suite 6.3

Same name and namespace in other branches
  1. 6.2 theme/theme.inc \theme_ds_multigroup_horizontal_line()

Theme a multigroup divided by horizontal lines

Parameters

string $group The group to theme.:

1 string reference to 'theme_ds_multigroup_horizontal_line'
_ds_theme in includes/ds.registry.inc
Return theme functions.

File

theme/theme.inc, line 384
Theming functions for ds.

Code

function theme_ds_multigroup_horizontal_line($group) {
  $output = '';
  foreach ($group['rows'] as $row_delta => $row) {
    $divider = $row_delta > 0 ? '<hr class="content-multigroup" />' : '';
    $output .= '<div' . drupal_attributes(array(
      'class' => $row['class'],
    )) . '>' . $divider;
    if (!empty($row['title'])) {
      $output .= theme('ds_subgroup_label', $row['title']);
    }
    $output .= $row['rendered'] . '</div>';
  }
  return $output;
}