You are here

function twitter_user_delete in Twitter 6.2

Same name and namespace in other branches
  1. 6.3 twitter.inc \twitter_user_delete()
  2. 6.4 twitter.inc \twitter_user_delete()
  3. 7.6 twitter.module \twitter_user_delete()
  4. 7.3 twitter.module \twitter_user_delete()
  5. 7.4 twitter.module \twitter_user_delete()
  6. 7.5 twitter.module \twitter_user_delete()
1 call to twitter_user_delete()
twitter_account_list_form_submit in ./twitter.pages.inc

File

./twitter.inc, line 467
A wrapper API for the Twitter microblogging service.

Code

function twitter_user_delete($uid, $screen_name = NULL) {
  $sql = "DELETE FROM {twitter_user} WHERE uid = %d";
  $args = array(
    $uid,
  );
  if (!empty($screen_name)) {
    $sql .= " AND screen_name = '%s'";
    $args[] = $screen_name;
  }
  db_query($sql, $args);
}