You are here

function uc_addresses_user_delete in Ubercart Addresses 7

Implements hook_user_delete().

File

./uc_addresses.module, line 330
Adds user profile address support to Ubercart.

Code

function uc_addresses_user_delete($account) {

  // We're deleting the user, so delete all his/her addresses as well.
  db_delete('uc_addresses')
    ->condition('uid', $account->uid)
    ->execute();
}