You are here

function spambot_node_delete in Spambot 8

Same name and namespace in other branches
  1. 7 spambot.module \spambot_node_delete()

Implements hook_node_delete().

File

./spambot.module, line 636
Main module file.

Code

function spambot_node_delete($node) {
  $connection = \Drupal::database();
  $connection
    ->delete('node_spambot')
    ->condition('nid', $node
    ->id())
    ->execute();
}