You are here

function yashare_block_view in Yandex.Share 7.2

Same name and namespace in other branches
  1. 7 yashare.block.inc \yashare_block_view()

Implements hook_block_view().

File

./yashare.module, line 62

Code

function yashare_block_view($delta = '') {
  $block = array();
  if ($delta == 'yashare') {
    $block['subject'] = t('Yandex.Share');
    $block['content'] = array(
      'yashare' => array(
        '#type' => 'yashare_widget',
        '#id' => 'yashare-block',
      ),
    );
  }
  return $block;
}