function fb_user_app_user in Drupal for Facebook 6.3
Implements hook_user().
@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 112 - This module manages relations between local Drupal user accounts and their accounts on facebook.com by application.
Code
function fb_user_app_user($op, &$edit, &$account, $category = NULL) {
if ($op == 'delete') {
// 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=%d', $fbu);
}
}