You are here

function commerce_registration_commerce_line_item_type_info in Commerce Registration 7

Implements hook_commerce_line_item_type_info().

File

./commerce_registration.module, line 131
Commerce Registration module code.

Code

function commerce_registration_commerce_line_item_type_info() {
  $items = array();
  $items['waitlist'] = array(
    'type' => 'waitlist',
    'name' => t('Waitlist'),
    'product' => TRUE,
    'description' => t('References a product that is out of stock or beyond registration capacity.'),
    'add_form_submit_value' => t('Add product to waitlist'),
    'base' => 'commerce_registration_waitlist',
    'callbacks' => array(
      'title' => 'commerce_registration_waitlist_title',
    ),
  );
  $items['registration'] = array(
    'type' => 'registration',
    'name' => t('Registration'),
    'product' => FALSE,
    'description' => t('Contains the registration information for product enabled line items.'),
    'base' => 'commerce_registration_lineitem',
  );
  return $items;
}