function twitter_set_status in Twitter 6.5
Same name and namespace in other branches
- 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()
- 7.5 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_set_status_action in twitter_actions/
twitter_actions.module - Implementation of a configurable Twitter action.
- twitter_drush_tweet in ./
twitter.drush.inc - Callback for Drush command 'twitter-tweet'.
- twitter_post_nodeapi in twitter_post/
twitter_post.module - Implementation of hook_nodeapi().
File
- ./
twitter.inc, line 225
Code
function twitter_set_status($twitter_account, $status) {
$twitter = twitter_connect($twitter_account);
if (empty($twitter)) {
return FALSE;
}
return $twitter
->statuses_update($status);
}