You are here

public function ds_emptyregionrender::execute in Display Suite 6.2

Same name and namespace in other branches
  1. 6 plugins/ds_emptyregionrender.inc \ds_emptyregionrender::execute()

execute().

File

plugins/ds_emptyregionrender.inc, line 62
DS_EmptyRegionRender: Plugin to render an empty region.

Class

ds_emptyregionrender
@file DS_EmptyRegionRender: Plugin to render an empty region.

Code

public function execute($vars, &$display, $display_settings, $object_type, $module) {
  foreach ($display->themed_regions as $region_name => $region_title) {
    $render = ds_default_value($display_settings, 'emptyregionrender', 'render', $region_name, FALSE);
    if ($render == TRUE) {
      $display->themed_regions[$region_name]['hidden'] = FALSE;
    }
  }
}