function comment_user_delete
comment_user_delete($account)
Implements hook_user_delete().
File
- modules/comment/comment.module, line 1423
- 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/comment_user_delete/7.x