You are here

function commerce_registration_product_title in Commerce Registration 7

Same name and namespace in other branches
  1. 7.3 commerce_registration.module \commerce_registration_product_title()
  2. 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'
commerce_registration_commerce_line_item_type_info_alter in ./commerce_registration.module

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());
}