Respond to creation of a new node.
This is a node-type-specific hook, which is invoked only for the node type being affected. See Node API hooks for more information.
Use hook_node_insert() to respond to node insertion of all node types.
Node $node: The node that is being created.
modules/ node/ node.api.php, line 1102
- Hooks provided by the Node module.