function comment_alter_comment_delete in Comment Alter 8
Same name and namespace in other branches
- 7 comment_alter.module \comment_alter_comment_delete()
Implements hook_ENTITY_TYPE_delete().
File
- ./
comment_alter.module, line 556 - Allows to alter entities from comment form.
Code
function comment_alter_comment_delete(EntityInterface $comment) {
\Drupal::database()
->delete('comment_alter')
->condition('cid', $comment
->id())
->execute();
}