comment_user
Definition
comment_user($type, $edit, &$user, $category = NULL)
modules/comment/comment.module, line 639
Description
Implementation of hook_user().
Code
<?php
function comment_user($type, $edit, &$user, $category = NULL) {
if ($type == 'delete') {
db_query('UPDATE {comments} SET uid = 0 WHERE uid = %d', $user->uid);
db_query('UPDATE {node_comment_statistics} SET last_comment_uid = 0 WHERE last_comment_uid = %d', $user->uid);
}
}
?> 