You are here

function registration_get_active_states in Entity Registration 7

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

Return an array of all active state machine names.

Return value

array

5 calls to registration_get_active_states()
registration_event_count in ./registration.module
Determines current number of spaces filled for a host entity.
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 1662

Code

function registration_get_active_states() {
  $active = array();
  $states = registration_states(array(
    'active' => TRUE,
  ));
  foreach ($states as $state) {
    $active[] = $state
      ->identifier();
  }
  return $active;
}