You are here

public function dsRegionToBlock::block_view in Display Suite 6.3

plugin block view

File

plugins/ds_extension/regiontoblock.inc, line 111

Class

dsRegionToBlock

Code

public function block_view($block) {
  $content = array();
  $data = ds_static_variables($block['key']);
  if (!empty($data)) {
    $content['subject'] = $block['info'];
    $content['content'] = theme('ds_objects', $data, array(
      'context' => 'blocktoregion',
      'block' => $block,
    ));
  }
  return $content;
}