Same name and namespace in other branches
- 8.x-1.x spambot.module \spambot_node_insert() 1 comment
Implements hook_node_insert().
File
-
./
spambot.module, line 112
Code
function spambot_node_insert($node) {
db_insert('node_spambot')->fields(array(
'nid' => $node->nid,
'uid' => $node->uid,
'hostname' => ip_address(),
))
->execute();
}