function fb_social_share_block in Facebook social plugins integration 6
Implementation of hook_block
File
- modules/
fb_social_share/ fb_social_share.module, line 17
Code
function fb_social_share_block($op = 'list', $delta = 0) {
if ($op == "list") {
$block = array();
$block[0]["info"] = t('fb share');
return $block;
}
else {
if ($op == 'view') {
$url = fb_social_url($_GET['q']);
$layout = variable_get('fb_social_share_layout_style', 'button_count');
$block_content .= theme('fb_social_share_widget', $url);
$block['subject'] = 'Facebook Share';
$block['content'] = $block_content;
return $block;
}
}
}