You are here

function content_access_node_delete in Content Access 8

Same name and namespace in other branches
  1. 7 content_access.module \content_access_node_delete()

Implements hook_node_delete().

File

./content_access.module, line 133
Content access module file.

Code

function content_access_node_delete(NodeInterface $node) {
  \Drupal::database()
    ->delete('content_access')
    ->condition('nid', $node
    ->id())
    ->execute();
}