You are here

function profile2_user_delete in Profile 2 7

Same name and namespace in other branches
  1. 7.2 profile2.module \profile2_user_delete()

Implements hook_user_delete().

File

./profile2.module, line 320
Support for configurable user profiles.

Code

function profile2_user_delete($account) {
  foreach (profile2_load_by_user($account) as $profile) {
    profile2_delete($profile);
  }
}