function tweet_block_view in Tweet 7.4
Implements hook_block_view().
File
- ./
tweet.module, line 74 - Builds links to post pages to Twitter API sites.
Code
function tweet_block_view($delta) {
if ($delta == 'tweet') {
$block['subject'] = t('Tweet this');
$links = array();
foreach (tweet_sites(TRUE) as $site => $info) {
$links[$site] = tweet_to_twitter($site);
}
$block['content'] = theme('item_list', array(
'items' => $links,
));
return $block;
}
}