You are here

function addthis_block_view in AddThis 7.2

Same name and namespace in other branches
  1. 7.4 includes/addthis.block.inc \addthis_block_view()

Implement hook_block_view();

File

./addthis.module, line 74
Stand alone module file to handle AddThis button integration

Code

function addthis_block_view($delta) {
  if ($delta != 'addthis' || !user_access('view addthis')) {
    return;
  }
  return array(
    'subject' => t('Addthis'),
    'content' => _addthis_create_button(array(
      'build_mode' => 'block',
    )),
  );
}