public function dsDisplay::regionsAddContent in Display Suite 6.3
For all regions, add content from provided fields
1 call to dsDisplay::regionsAddContent()
- dsDisplay::render in includes/
dsDisplay.php - Render content
File
- includes/
dsDisplay.php, line 472 - Class definition for a Display Suite Display object
Class
- dsDisplay
- The Display Suite Display object
Code
public function regionsAddContent() {
$this->content = '';
foreach ($this->regions as $key => $region) {
if ($this
->regionIsActive($key)) {
$fields = ds_element_children($region);
foreach ($fields as $field) {
if (!empty($region[$field])) {
$this->regions[$key]['#field_content'] .= $region[$field];
}
}
}
}
}