You are here

function user_permissions_user_delete in User Permissions 7

Implements hook_user_delete()

File

./user_permissions.module, line 49

Code

function user_permissions_user_delete($account) {
  if ($role = user_role_load_by_name('_user_role_' . $account->uid)) {
    user_role_delete((int) $role->rid);
  }
}