function registration_get_held_states in Entity Registration 8
Same name and namespace in other branches
- 8.2 registration.module \registration_get_held_states()
- 7.2 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
1 call to registration_get_held_states()
- registration_cron in ./
registration.module - Implements hook_cron().
File
- ./
registration.module, line 1599
Code
function registration_get_held_states() {
$held = array();
$states = registration_states(array(
'held' => TRUE,
));
foreach ($states as $state) {
$held[] = $state
->identifier();
}
return $held;
}