You are here

function _tweet_text in Tweet 7.4

Same name and namespace in other branches
  1. 6.4 tweet.module \_tweet_text()

Helper function to figure out what text to display with a Tweet link.

1 call to _tweet_text()
_tweet_to_twitter in ./tweet.module
Creates a link to post a URL and optionally title to twitter. Uses the current page by default.

File

./tweet.module, line 374
Builds links to post pages to Twitter API sites.

Code

function _tweet_text($site) {
  return str_replace('[site]', check_plain($site), variable_get('tweet_text', t('Post to [site]')));
}