function privatemsg_filter_user_cancel in Privatemsg 7
Same name and namespace in other branches
- 7.2 privatemsg_filter/privatemsg_filter.module \privatemsg_filter_user_cancel()
Implements hook_user_cancel().
File
- privatemsg_filter/
privatemsg_filter.module, line 964 - Allows users to tag private messages and to filter based upon those tags.
Code
function privatemsg_filter_user_cancel($edit, $account, $method) {
// Always delete since this is only visible for the user anyway.
db_delete('pm_tags_index')
->condition('uid', $account->uid)
->execute();
}