You are here

function user_relationships_user_delete in User Relationships 7

Implements hook_user_delete().

File

./user_relationships.module, line 366
User Relationships API. Module shell.

Code

function user_relationships_user_delete($account) {
  db_delete('user_relationships')
    ->condition(db_or()
    ->condition('requester_id', $account->uid)
    ->condition('requestee_id', $account->uid))
    ->execute();
}