You are here

public function dsDisplay::assignActiveRegions in Display Suite 6.3

Given an array of region information from a node, assign active and hidden regions.

1 call to dsDisplay::assignActiveRegions()
dsDisplay::render in includes/dsDisplay.php
Render content

File

includes/dsDisplay.php, line 412
Class definition for a Display Suite Display object

Class

dsDisplay
The Display Suite Display object

Code

public function assignActiveRegions($set_regions) {
  foreach ($this->regions as $key => $region) {
    if (array_key_exists($key, $set_regions)) {
      $this->regions[$key]['#field_weights'] = $set_regions[$key];
      $this
        ->regionShow($key);
    }
  }
}