function theme_ds_regions in Display Suite 6.3
Same name and namespace in other branches
- 6 theme/theme.inc \theme_ds_regions()
- 6.2 theme/theme.inc \theme_ds_regions()
Theme function to render all regions with their content.
Parameters
stdClass $vars: Variables required to complete the display.
Other variables which you can use:
- $region['count']: holds the number of fields per region.
1 theme call to theme_ds_regions()
- views_plugin_ds_fields_view::ds_views_fields_render in views/
views_plugin_ds_fields_view.inc - Render the content for modules not implementing the ds api.
File
- theme/
theme.inc, line 65 - Theming functions for ds.
Code
function theme_ds_regions($vars) {
$output = '<div' . $vars['attributes'] . '>';
foreach ($vars['regions'] as $region) {
$output .= $region['content'];
}
$output .= '</div>';
return $output;
}