function simple_access_node_delete in Simple Access 8.3
Same name and namespace in other branches
- 7.2 simple_access.module \simple_access_node_delete()
Implements hook_node_delete().
File
- ./
simple_access.module, line 120 - Builds simple access definition for content access.
Code
function simple_access_node_delete(NodeInterface $node) {
foreach ([
'simple_access_node_group',
'simple_access_node_profile',
] as $table) {
\Drupal::database()
->delete($table)
->condition('nid', $node
->id())
->execute();
}
}