You are here

function twitter_user_delete in Twitter 7.5

Same name and namespace in other branches
  1. 6.2 twitter.inc \twitter_user_delete()
  2. 6.3 twitter.inc \twitter_user_delete()
  3. 6.4 twitter.inc \twitter_user_delete()
  4. 7.6 twitter.module \twitter_user_delete()
  5. 7.3 twitter.module \twitter_user_delete()
  6. 7.4 twitter.module \twitter_user_delete()

Implements hook_user_delete().

Removes user's Twitter accounts and tweets

File

./twitter.module, line 568
Provides API integration with the Twitter microblogging service.

Code

function twitter_user_delete($account) {
  module_load_include('inc', 'twitter');
  foreach ($account->twitter_accounts as $twitter_account) {
    twitter_account_delete($twitter_account->id);
  }
}