function commerce_registration_product_title in Commerce Registration 7
Same name and namespace in other branches
- 7.3 commerce_registration.module \commerce_registration_product_title()
- 7.2 commerce_registration.module \commerce_registration_product_title()
Product title line item callback.
We alter the title of the default line item to show available slots if the product is register enabled.
Parameters
$line_item:
Return value
Title of the line item product plus available slots, if applicable.
1 string reference to 'commerce_registration_product_title'
File
- ./
commerce_registration.module, line 172 - Commerce Registration module code.
Code
function commerce_registration_product_title($line_item) {
$line_item_wrapper = entity_metadata_wrapper('commerce_line_item', $line_item);
return commerce_registration_get_product_title($line_item_wrapper->commerce_product
->value());
}