You are here

function registration_waitlist_default_registration_state in Entity Registration 8

Same name and namespace in other branches
  1. 8.2 modules/registration_waitlist/registration_waitlist.module \registration_waitlist_default_registration_state()
  2. 7.2 modules/registration_waitlist/registration_waitlist.module \registration_waitlist_default_registration_state()
  3. 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 42
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;
}