You are here

function delta_blocks_block_view in Delta 7.3

Implements hook_block_view().

File

delta_blocks/delta_blocks.module, line 67
Exposes a number of core Drupal elements as blocks.

Code

function delta_blocks_block_view($delta = '') {
  $blocks = _delta_blocks_get_blocks();
  if (isset($blocks[$delta]) && _delta_blocks_is_enabled($delta)) {
    return array(
      'subject' => '',
      'content' => delta_blocks_get_content($delta),
    );
  }
}