Skip navigation
Help

comment_user_delete

7 comment.module comment_user_delete($account)

Implements hook_user_delete().

File

drupal/modules/comment/comment.module, line 1403
Enables users to comment on published content.

Code

function comment_user_delete($account) {
  $cids = db_query('SELECT c.cid FROM {comment} c WHERE uid = :uid', array(':uid' => $account->uid))->fetchCol();
  comment_delete_multiple($cids);
}