function tweet_to_twitter in Tweet 6.3
Same name and namespace in other branches
- 5.2 tweet.module \tweet_to_twitter()
- 5 tweet.module \tweet_to_twitter()
- 6.4 tweet.module \tweet_to_twitter()
- 6 tweet.module \tweet_to_twitter()
- 6.2 tweet.module \tweet_to_twitter()
- 7.4 tweet.module \tweet_to_twitter()
Returns a link from _tweet_to_twitter().
1 call to tweet_to_twitter()
- tweet_block in ./
tweet.module - Implementation of hook_block().
File
- ./
tweet.module, line 78 - Builds links to post pages to twitter.
Code
function tweet_to_twitter($type = '', $format = '', $nid = '') {
if (!$type && variable_get('tweet_node', 'icon') == 'none') {
$type = 'icon_text';
}
$array = _tweet_to_twitter($type, $format, $nid);
return l($array['title'], $array['href'], array(
'attributes' => $array['attributes'],
'query' => $array['query'],
'absolute' => TRUE,
'html' => $array['html'],
));
}