You are here

function comment_notify_remove_all_notifications in Comment Notify 8

Same name and namespace in other branches
  1. 7 comment_notify.inc \comment_notify_remove_all_notifications()

Remove all the notifications linked with a comment.

Parameters

int $cid: The comment ID.

Return value

bool TRUE if all the notifications were removed correctly.

1 call to comment_notify_remove_all_notifications()
comment_notify_comment_delete in ./comment_notify.module
Deletes all the notifications when a comment is deleted.

File

./comment_notify.inc, line 67
Contains functions which utilize the database and other internal helpers.

Code

function comment_notify_remove_all_notifications($cid) {
  return (bool) \Drupal::database()
    ->delete('comment_notify')
    ->condition('cid', $cid)
    ->execute();
}