function block_block_view

cis7 block.module block_block_view($delta = '')
cle7 block.module block_block_view($delta = '')
elmsmedia7 block.module block_block_view($delta = '')
icor7 block.module block_block_view($delta = '')
meedjum_blog7 block.module block_block_view($delta = '')
mooc7 block.module block_block_view($delta = '')

Implements hook_block_view().

Generates the administrator-defined blocks for display.

File

modules/block/block.module, line 242
Controls the visual building blocks a page is constructed with.

Code

function block_block_view($delta = '') {
  $block = db_query('SELECT body, format FROM {block_custom} WHERE bid = :bid', array(':bid' => $delta))->fetchObject();
  $data['subject'] = NULL;
  $data['content'] = check_markup($block->body, $block->format, '', TRUE);
  return $data;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.