You are here

function user_relationships_user_cancel in User Relationships 7

Implements hook_user_cancel().

File

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

Code

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