comment_user
- Versions
- 4.6 – 6
comment_user($type, $edit, &$user, $category = NULL)
Implementation of hook_user().
Code
modules/comment/comment.module, line 639
<?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);
}
}
?>Login or register to post comments 