function hook_node_postsave in Hook Post Action 7
Gets called after a node has been inserted/updated/deleted to database.
Parameters
$node: A node object
string $op: An string containing the operating that's taking place (insert/update/delete)
See also
1 invocation of hook_node_postsave()
File
- ./
hook_post_action.api.php, line 111  - Documents API functions for hook_post_action module.
 
Code
function hook_node_postsave($node, $op) {
  watchdog('hook_post_action_test', 'The @op node @type id is @nid from @function.', array(
    '@op' => t($op . 'd'),
    '@nid' => $node->nid,
    '@type' => $node->type,
    '@function' => __FUNCTION__,
  ));
}