Download & Extend

Remove tracker data for the user being deleted

Project:Tracker 2
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

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

<?php
/**
* 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

#1

Status:needs review» reviewed & tested by the community

It seems very reasonable.

nobody click here