You are here

function registration_save in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 registration.module \registration_save()
  2. 8 registration.module \registration_save()
  3. 7 registration.module \registration_save()

Saves a registration.

Parameters

$registration: The full registration object to save.

Return value

If the record insert or update failed, returns FALSE. If it succeeded, returns SAVED_NEW or SAVED_UPDATED, depending on the operation performed.

3 calls to registration_save()
RegistrationViewsHandlerStateEdit::views_form_submit in modules/registration_views/registration_views.module
Form submit method.
registration_form_submit in includes/registration.forms.inc
Submit callback for registration_form().
registration_views_set_state_action in modules/registration_views/registration_views.module
The actual action to set a Registration's State.

File

./registration.module, line 1931

Code

function registration_save(Registration $registration) {
  return $registration
    ->save();
}