function twitter_account_load in Twitter 7.4
Same name and namespace in other branches
- 6.5 twitter.inc \twitter_account_load()
- 6.3 twitter.inc \twitter_account_load()
- 6.4 twitter.inc \twitter_account_load()
- 7.6 twitter.inc \twitter_account_load()
- 7.3 twitter.inc \twitter_account_load()
- 7.5 twitter.inc \twitter_account_load()
Load a Twitter account from {twitter_account}.
Parameters
$id: Twitter UID
Return value
TwitterUser object
9 calls to twitter_account_load()
- twitter_account_delete in ./
twitter.inc - Delete a twitter account and its statuses.
- 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 action. @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_cron in ./
twitter.module - Implements hook_cron().
- twitter_fetch_mentions_timeline in ./
twitter.inc - Fetches user's mentions.
File
- ./
twitter.inc, line 77
Code
function twitter_account_load($id) {
if ($values = db_query("SELECT * FROM {twitter_account} WHERE twitter_uid = :twitter_uid", array(
':twitter_uid' => $id,
))
->fetchAssoc()) {
$values['id'] = $values['twitter_uid'];
$account = new TwitterUser($values);
$account
->set_auth($values);
$account->uid = $values['uid'];
$account->import = $values['import'];
$account->mentions = $values['mentions'];
$account->is_global = $values['is_global'];
return $account;
}
}