You are here

function node_registration_node_insert in Node registration 7

Implements hook_node_insert().

File

./node_registration.module, line 1405

Code

function node_registration_node_insert($node) {
  if (isset($node->registration)) {
    $node->registration->nid = $node->nid;

    // 'nid' is new in this fake settings object.
    $node->registration->node = $node;
    $node->registration
      ->update();
  }
}