function tweet_block in Tweet 6.3
Same name and namespace in other branches
- 6.4 tweet.module \tweet_block()
Implementation of hook_block().
File
- ./
tweet.module, line 63 - Builds links to post pages to twitter.
Code
function tweet_block($op = 'list', $delta = 0, $edit = NULL) {
if ($op == 'list') {
$block['tweet']['info'] = t('Tweet link');
return $block;
}
elseif ($op == 'view' && $delta == 'tweet') {
$block['subject'] = t('Tweet this');
$block['content'] = tweet_to_twitter();
return $block;
}
}