You are here

function sharemessage_block_view in Share Message 7

Implements hook_block_view().

File

./sharemessage.module, line 183
New Sharing Module.

Code

function sharemessage_block_view($delta = '') {
  $sharemessage = entity_load_single('sharemessage', $delta);
  $block = array();
  if (!$sharemessage) {
    return $block;
  }
  $block['subject'] = $sharemessage->label;
  $block['content'] = sharemessage_view($sharemessage);
  return $block;
}