function block_block_view
block_block_view($delta = '')
Implements hook_block_view().
Generates the administrator-defined blocks for display.
File
- modules/block/block.module, line 244
- 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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.module/function/block_block_view/7.x