It seems to me that tracker2 would have to remove data when a user account is deleted.

/**
 * Implementation of hook_user().
 */
function tracker2_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'delete') {
    // Remove tracker data for the user account being deleted.
    db_query("DELETE FROM {tracker2_user} WHERE uid = %d", $account->uid);
  }
}

Comments

quotesbro’s picture

Status: Needs review » Reviewed & tested by the community

It seems very reasonable.