You are here

function redhen_contact_user_delete in RedHen CRM 7

Implements hook_user_delete().

File

modules/redhen_contact/redhen_contact.module, line 647
Module file for RedHen contacts.

Code

function redhen_contact_user_delete($account) {

  // Delete any associated contacts.
  if ($contact = redhen_contact_load_by_user($account)) {
    $return = $contact
      ->delete();
  }
}