function node_registration_load in Node registration 7
Loads a registration by ID.
2 calls to node_registration_load()
- node_registration_form_submit in includes/
node_registration.forms.inc - Submit handler for node_registration_form().
- nr_views_handler_field_boolean_togglable::render in includes/
views/ nr_views_handler_field_boolean_togglable.inc - Override views_handler_field_boolean::render().
File
- includes/
node_registration.entity.inc, line 636 - Entity hooks and callbacks for registrations.
Code
function node_registration_load($registration_id, $reset = FALSE) {
if (empty($registration_id)) {
return FALSE;
}
$registrations = node_registration_load_multiple(array(
$registration_id,
), array(), $reset);
return $registrations ? reset($registrations) : FALSE;
}