Posted by markus_petrux on January 23, 2010 at 2:55pm
2 followers
Jump to:
| 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
It seems very reasonable.