function fb_social_like_block in Facebook social plugins integration 6
Implementation of hook_block
File
- modules/
fb_social_like/ fb_social_like.module, line 98
Code
function fb_social_like_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks['like'] = array(
'info' => t('fb like'),
);
return $blocks;
case 'view':
switch ($delta) {
case 'like':
$url = fb_social_url($_GET['q']);
return array(
'subject' => t(''),
'content' => theme('fb_social_like_widget', $url),
);
}
break;
}
}