You are here

public function ds_regiontoblock::block_view in Display Suite 6.2

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

plugin block view

File

plugins/ds_regiontoblock.inc, line 104
DS_RegionToBlock: Plugin to make a region available as a block.

Class

ds_regiontoblock
@file DS_RegionToBlock: Plugin to make a region available as a block.

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;
}