You are here

function ds_extras_block_info in Display Suite 7.2

Same name and namespace in other branches
  1. 7 modules/ds_extras/ds_extras.module \ds_extras_block_info()

Implements hook_block_info().

File

modules/ds_extras/ds_extras.module, line 477
Display Suite extras main functions.

Code

function ds_extras_block_info() {
  $region_blocks = variable_get('ds_extras_region_blocks', array());
  if (empty($region_blocks)) {
    return array();
  }
  foreach ($region_blocks as $key => $block) {
    $blocks[$key] = array(
      'info' => $block['title'],
      'cache' => DRUPAL_NO_CACHE,
    );
  }
  return $blocks;
}