You are here

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

hook_node_postinsert()

hook_node_postupdate()

hook_node_postdelete()

1 invocation of hook_node_postsave()
_hook_post_action_post_save in ./hook_post_action.module

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__,
  ));
}