You are here

function _referral_user_delete in User Referral 7

Same name and namespace in other branches
  1. 5 referral.module \_referral_user_delete()
  2. 6 referral.module \_referral_user_delete()
1 call to _referral_user_delete()
referral_user_delete in ./referral.module
Implements hook_user_delete().

File

./referral.module, line 265
The referral module.

Code

function _referral_user_delete($uid) {
  $or = db_or()
    ->condition('uid', $uid)
    ->condition('referral_uid', $uid);
  $query = db_delete('referral')
    ->condition($or)
    ->execute();
}