function addtoany_block_view in AddToAny Share Buttons 7.4
Same name and namespace in other branches
- 5.0 addtoany.module \addtoany_block_view()
- 7 addtoany.module \addtoany_block_view()
- 7.3 addtoany.module \addtoany_block_view()
Implements hook_block_view().
File
- ./
addtoany.module, line 131 - Stand alone module file to handle AddToAny buttons integration
Code
function addtoany_block_view($delta = 0) {
$block = array();
switch ($delta) {
case 'addtoany_button':
$block['subject'] = t('AddToAny');
$block['content'] = addtoany_create_node_buttons(menu_get_object());
break;
}
return $block;
}