function heartbeat_example_node_update in Heartbeat 7
Implements hook_node_update().
Parameters
<type> $node:
File
- modules/
heartbeat_example/ heartbeat_example.module, line 30 - Heartbeat example module
Code
function heartbeat_example_node_update($node) {
heartbeat_api_log('heartbeat_edit_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);
}