You are here

function node_registration_node_update in Node registration 7

Implements hook_node_update().

File

./node_registration.module, line 1394

Code

function node_registration_node_update($node) {
  if (isset($node->registration, $node->node_registration_status)) {
    $status = $node->node_registration_status ? 1 : 0;
    $node->registration
      ->update(compact('status'));
  }
}