function registration_waitlist_default_registration_state in Entity Registration 7.2
Same name and namespace in other branches
- 8.2 modules/registration_waitlist/registration_waitlist.module \registration_waitlist_default_registration_state()
- 8 modules/registration_waitlist/registration_waitlist.module \registration_waitlist_default_registration_state()
- 7 modules/registration_waitlist/registration_waitlist.module \registration_waitlist_default_registration_state()
Implements hook_default_ENTITY_TYPE().
File
- modules/
registration_waitlist/ registration_waitlist.module, line 66 - Entity Registration waitlist functionality
Code
function registration_waitlist_default_registration_state() {
$defaults = array();
$defaults[REGISTRATION_WAITLIST_STATE] = entity_create('registration_state', array(
'name' => REGISTRATION_WAITLIST_STATE,
'label' => t('Wait list'),
'description' => t('Special state for registrations after capacity is reached.'),
'default_state' => FALSE,
'active' => FALSE,
'show_on_form' => TRUE,
'weight' => 0,
));
return $defaults;
}