You are here

function _node_expire_node_delete in Node expire 8

Same name and namespace in other branches
  1. 7 node_expire.nodeapi.inc \_node_expire_node_delete()

Implements hook_node_delete().

1 call to _node_expire_node_delete()
node_expire_node_delete in ./node_expire.module
Implements hook_nodeapi_delete().

File

./node_expire.nodeapi.inc, line 221
Node API integration.

Code

function _node_expire_node_delete(&$ntype, \Drupal\node\NodeInterface $node) {
  db_delete('node_expire')
    ->condition('nid', $node
    ->id())
    ->execute();
}