You are here

function node_registration_save in Node registration 7

Saves a registration.

1 call to node_registration_save()
node_registration_form_submit in includes/node_registration.forms.inc
Submit handler for node_registration_form().

File

includes/node_registration.entity.inc, line 666
Entity hooks and callbacks for registrations.

Code

function node_registration_save($registration) {

  // Updated NOW.
  $registration->updated = REQUEST_TIME;

  // Created NOW only if new.
  if (empty($registration->created)) {
    $registration->created = REQUEST_TIME;
  }

  // Do entity callback.
  return entity_get_controller('node_registration')
    ->save($registration);
}