You are here

function twitter_account_delete in Twitter 6.5

Same name and namespace in other branches
  1. 7.6 twitter.inc \twitter_account_delete()
  2. 7.3 twitter.inc \twitter_account_delete()
  3. 7.4 twitter.inc \twitter_account_delete()
  4. 7.5 twitter.inc \twitter_account_delete()

Delete a twitter account and its statuses.

Parameters

$twitter_uid: An integer with the Twitter UID.

2 calls to twitter_account_delete()
twitter_account_list_form_submit in ./twitter.pages.inc
Form submit handler for altering the list of Twitter accounts.
twitter_user in ./twitter.module
Implements hook_user().

File

./twitter.inc, line 383

Code

function twitter_account_delete($twitter_uid) {
  $account = twitter_account_load($twitter_uid);
  db_query('DELETE FROM {twitter_account} WHERE twitter_uid = %d', $twitter_uid);
  db_query("DELETE FROM {twitter} WHERE screen_name = '%s'", $account->screen_name);
  db_query("DELETE FROM {authmap} WHERE authname = %d AND module = 'twitter'", $twitter_uid);
}