You are here

function forward_node_insert in Forward 7

Same name and namespace in other branches
  1. 7.2 forward.module \forward_node_insert()

Implements hook_node_insert().

File

./forward.module, line 713

Code

function forward_node_insert($node) {
  $id = db_insert('forward_statistics')
    ->fields(array(
    'nid' => $node->nid,
    'last_forward_timestamp' => 0,
    'forward_count' => 0,
    'clickthrough_count' => 0,
  ))
    ->execute();
}