function comment_user_delete
Implements hook_user_delete().
File
-
modules/
comment/ comment.module, line 1431
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.