function theme_ds_multigroup_horizontal_line in Display Suite 6.2
Same name and namespace in other branches
- 6.3 theme/theme.inc \theme_ds_multigroup_horizontal_line()
Theme a multigroup divided by horizontal lines
Parameters
string $group: The group to theme.
Return value
bool | string A string representing the rendered fieldset, or FALSE if not content is rendered.
1 string reference to 'theme_ds_multigroup_horizontal_line'
- _ds_theme in includes/
ds.registry.inc - Return theme functions.
File
- theme/
theme.inc, line 408 - Theming functions for ds.
Code
function theme_ds_multigroup_horizontal_line($group) {
$output = '';
foreach ($group['rows'] as $row_delta => $row) {
if (isset($row['rendered']) && !empty($row['rendered'])) {
$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;
}