function comment_notify_remove_user_settings in Comment Notify 8
Remove the user settings of of the user with the given $uid.
Parameters
int $uid: The user id.
2 calls to comment_notify_remove_user_settings()
- comment_notify_user_cancel in ./
comment_notify.module - Implements hook_user_cancel().
- comment_notify_user_predelete in ./
comment_notify.module - Implements hook_user_delete().
File
- ./
comment_notify.module, line 337 - This module provides comment follow-up e-mail notifications.
Code
function comment_notify_remove_user_settings($uid) {
/** @var \Drupal\comment_notify\UserNotificationSettings $user_settings */
$user_settings = \Drupal::service('comment_notify.user_settings');
$user_settings
->deleteSettings($uid);
}