function registration_get_held_states in Entity Registration 7.2
Same name and namespace in other branches
- 8.2 registration.module \registration_get_held_states()
- 8 registration.module \registration_get_held_states()
- 7 registration.module \registration_get_held_states()
Return an array of all held state machine names.
Return value
array
2 calls to registration_get_held_states()
- registration_cron in ./
registration.module - Implements hook_cron().
- registration_event_count in ./
registration.module - Determines current number of spaces filled for a host entity.
File
- ./
registration.module, line 1743
Code
function registration_get_held_states() {
$held = array();
$states = registration_states(array(
'held' => TRUE,
));
foreach ($states as $state) {
$held[] = $state
->identifier();
}
return $held;
}