function privatemsg_user_delete in Privatemsg 7
Same name and namespace in other branches
- 7.2 privatemsg.module \privatemsg_user_delete()
Implements hook_user_delete().
File
- ./
privatemsg.module, line 1299 - Allows users to send private messages to other users.
Code
function privatemsg_user_delete($account) {
_privatemsg_delete_data($account);
// Always delete user settings.
db_delete('pm_disable')
->condition('uid', $account->uid)
->execute();
}