function heartbeat_example_node_insert in Heartbeat 7
Implements hook_node_insert().
Parameters
<type> $node:
File
- modules/
heartbeat_example/ heartbeat_example.module, line 16 - Heartbeat example module
Code
function heartbeat_example_node_insert($node) {
heartbeat_api_log('heartbeat_add_node', $node->uid, 0, $node->nid, 0, array(
'!node_title' => l($node->title, 'node/' . $node->nid),
'!username' => l(user_load($node->uid)->name, 'user/' . $node->uid),
'!node_type' => $node->type,
'!types' => $node->type . 's',
), HEARTBEAT_PUBLIC_TO_ALL, $node->created);
}