function sharedblocks_block_view in Shared Blocks 6
Same name and namespace in other branches
- 7.2 sharedblocks.module \sharedblocks_block_view()
- 7 sharedblocks.module \sharedblocks_block_view()
Display a single shared block.
1 call to sharedblocks_block_view()
- sharedblocks_block in ./
sharedblocks.module - Implementation of hook_block().
File
- ./
sharedblocks.module, line 352
Code
function sharedblocks_block_view($delta) {
// Look up details for this block.
$block = unserialize(db_result(db_query("SELECT block_data FROM {sharedblocks} WHERE name = '%s'", $delta)));
// Return the unserialized block data.
return $block;
}