function commerce_registration_entity_property_info_alter in Commerce Registration 7.3
Same name and namespace in other branches
- 7.2 commerce_registration.module \commerce_registration_entity_property_info_alter()
Implements hook_entity_property_info_alter().
File
- ./
commerce_registration.module, line 188 - Commerce Registration module code.
Code
function commerce_registration_entity_property_info_alter(&$info) {
$info['registration']['properties']['lineitem_id'] = array(
'label' => t('Line Item ID'),
'type' => 'integer',
'schema field' => 'lineitem_id',
'setter callback' => 'entity_property_verbatim_set',
'getter callback' => 'entity_property_verbatim_get',
'description' => t('The line item ID to which this registration belongs.'),
);
$info['commerce_line_item']['properties']['registrations'] = array(
'label' => t('Registrations'),
'type' => 'entities',
'schema field' => 'registrations',
'description' => t('A collection of registration entities associated with this line item.'),
'setter callback' => 'entity_property_verbatim_set',
'getter callback' => 'commerce_registration_registrations_property_get',
);
}