You are here

function twitter_set_status in Twitter 7.3

Same name and namespace in other branches
  1. 6.5 twitter.inc \twitter_set_status()
  2. 6.2 twitter.inc \twitter_set_status()
  3. 6.3 twitter.inc \twitter_set_status()
  4. 6.4 twitter.inc \twitter_set_status()
  5. 7.6 twitter.inc \twitter_set_status()
  6. 7.4 twitter.inc \twitter_set_status()
  7. 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 in twitter_actions/twitter_actions.rules.inc
Fetches Twitter account info and submits with the message to the Twitter API
twitter_actions_set_status_action in twitter_actions/twitter_actions.module
Implementation of a configurable Twitter actions. @todo Implementation for language negotiation for the body and sumary. Also need implementation for bodies with multiple values. Right now it is hard coded and it will only get body and summary for…
twitter_post_node_insert in twitter_post/twitter_post.module
Implementation of hook_node_insert().

File

./twitter.inc, line 120
Twitter API functions

Code

function twitter_set_status($twitter_account, $status) {
  $twitter = twitter_connect($twitter_account);
  return $twitter
    ->status_update($status);
}