1 block.module block_block_view($delta = '')

Implements hook_block_view().

Generates the administrator-defined blocks for display.

File

core/modules/block/block.module, line 164
Provides the ability to create reusable custom blocks.

Code

function block_block_view($delta = '') {
  global $language;
  $block = block_custom_block_load($delta, $language->langcode);
  if (!$block) {
    return array();
  }
  $data['subject'] = strlen($block['title']) ? check_plain($block['title']) : NULL;
  $data['content'] = check_markup($block['body']['value'], $block['body']['format'], '', TRUE);
  return $data;
}