function twitter_set_status in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.inc \twitter_set_status()
- 6.2 twitter.inc \twitter_set_status()
- 6.3 twitter.inc \twitter_set_status()
- 6.4 twitter.inc \twitter_set_status()
- 7.6 twitter.inc \twitter_set_status()
- 7.3 twitter.inc \twitter_set_status()
- 7.4 twitter.inc \twitter_set_status()
Post a message to twitter
Parameters
$twitter_account: object with a Twitter account.
$status: string message to publish.
Return value
array response from Twitter API.
3 calls to twitter_set_status()
- twitter_actions_post in twitter_actions/
twitter_actions.module - Silently posts a message to Twitter
- twitter_drush_tweet in ./
twitter.drush.inc - Callback for Drush command 'twitter-tweet'.
- twitter_post_node_insert in twitter_post/
twitter_post.module - Implementation of hook_node_insert().
File
- ./
twitter.inc, line 281
Code
function twitter_set_status($twitter_account, $status) {
$twitter = twitter_connect($twitter_account);
if (empty($twitter)) {
return FALSE;
}
return $twitter
->statuses_update($status);
}