function registration_get_active_states in Entity Registration 8
Same name and namespace in other branches
- 8.2 registration.module \registration_get_active_states()
- 7.2 registration.module \registration_get_active_states()
- 7 registration.module \registration_get_active_states()
Return an array of all active state machine names.
Return value
array
4 calls to registration_get_active_states()
- registration_form_validate in includes/
registration.forms.inc - Validation callback for registration_form().
- registration_is_registered in ./
registration.module - Determine is a person has an active registration for a host entity.
- registration_send_broadcast in ./
registration.module - Send an email to all registrations for a host entity.
- registration_waitlist_entity_presave in modules/
registration_waitlist/ registration_waitlist.module - Implements hook_entity_presave().
File
- ./
registration.module, line 1585
Code
function registration_get_active_states() {
$active = array();
$states = registration_states(array(
'active' => TRUE,
));
foreach ($states as $state) {
$active[] = $state
->identifier();
}
return $active;
}