function registration_save in Entity Registration 8.2
Same name and namespace in other branches
- 8 registration.module \registration_save()
- 7.2 registration.module \registration_save()
- 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.
4 calls to registration_save()
- RegistrationViewsHandlerStateEdit::views_form_submit in modules/
registration_views/ registration_views.module - Form submit method.
- RegistrationViewsHandlerStateEdit::views_form_submit in modules/
registration_views/ src/ RegistrationViewsHandlerStateEdit.php - 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 1899
Code
function registration_save(Registration $registration) {
return $registration
->save();
}