You are here

function twitter_account_load in Twitter 6.3

Same name and namespace in other branches
  1. 6.5 twitter.inc \twitter_account_load()
  2. 6.4 twitter.inc \twitter_account_load()
  3. 7.6 twitter.inc \twitter_account_load()
  4. 7.3 twitter.inc \twitter_account_load()
  5. 7.4 twitter.inc \twitter_account_load()
  6. 7.5 twitter.inc \twitter_account_load()
6 calls to twitter_account_load()
twitter_actions_set_status_action in twitter_actions/twitter_actions.module
Implementation of a configurable Drupal action. Sends an email.
twitter_fetch_user_timeline in ./twitter.inc
Fetches a user's timeline
twitter_nodeapi in twitter_post/twitter_post.module
Implementation of hook_nodeapi().
twitter_twitter_accounts in ./twitter.module
An implementation of hook_twitter_accounts. We want to move this into a separate module eventually, but sticking the code here and using a hook lets other modules solve the 'what accounts can a user post with' problem in cleaner ways.
twitter_user_delete in ./twitter.inc
Deletes a Twitter account

... See full list

File

./twitter.inc, line 45

Code

function twitter_account_load($id) {
  $values = db_fetch_array(db_query("SELECT * FROM {twitter_account} WHERE twitter_uid = %d", $id));
  $values['id'] = $values['twitter_uid'];
  $account = new TwitterUser($values);
  $account
    ->set_auth($values);
  $account->uid = $values['uid'];
  $account->import = $values['import'];
  $account->include_retweets = $values['include_retweets'];
  $account->is_global = $values['is_global'];
  return $account;
}