yashare.block.inc in Yandex.Share 7
Yandex.Share block hooks.
File
yashare.block.incView source
<?php
/**
* @file
* Yandex.Share block hooks.
*/
/**
* Implements hook_block_info().
*/
function yashare_block_info() {
$blocks['yashare'] = array(
'info' => t('Yandex.Share'),
'cache' => DRUPAL_NO_CACHE,
);
return $blocks;
}
/**
* Implements hook_block_view().
*/
function yashare_block_view($delta = '') {
$block = array();
if ($delta == 'yashare') {
$block['subject'] = t('Yandex.Share');
$block['content'] = yashare_build('block');
}
return $block;
}
Functions
Name | Description |
---|---|
yashare_block_info | Implements hook_block_info(). |
yashare_block_view | Implements hook_block_view(). |