You are here

function hook_node_postinsert in Hook Post Action 7

Gets called after a node has been inserted to database.

Parameters

$node: A node object

See also

hook_node_postsave()

hook_node_postupdate()

hook_node_postdelete()

File

./hook_post_action.api.php, line 131
Documents API functions for hook_post_action module.

Code

function hook_node_postinsert($node) {
  watchdog('hook_post_action_test', 'The inserted node @type id is @nid from @function.', array(
    '@nid' => $node->nid,
    '@type' => $node->type,
    '@function' => __FUNCTION__,
  ));
}