You are here

function node_field_node_insert in Node Field 7.2

Implements hook_node_insert().

File

./node_field.module, line 380
This module provide ability to add extra fields to any single node.

Code

function node_field_node_insert($node) {

  // Copy node fields from original node to cloned node.
  if (!empty($node->node_field_clone)) {
    $original_node = node_load($node->node_field_clone);
    node_field_copy_node_fields($original_node, $node);
  }
}