You are here

function fb_user_app_user_delete in Drupal for Facebook 7.3

Implements hook_user_delete().

@TODO confirm there is no race condition between this module and fb_user. That is, during delete, does fb_get_fbu() still work?

File

contrib/fb_user_app.module, line 117
This module manages relations between local Drupal user accounts and their accounts on facebook.com by application.

Code

function fb_user_app_user_delete($account) {

  // Given the uid, fetch the fbu so that we can delete
  $fbu = fb_get_fbu($account->uid);
  db_query('DELETE FROM {fb_user_app} WHERE fbu=:fbu', array(
    ':fbu' => $fbu,
  ));
}