function commerce_product_bundle_load_sub_items in Commerce Product Bundle 7
Same name and namespace in other branches
- 7.2 commerce_product_bundle.rules.inc \commerce_product_bundle_load_sub_items()
Loads sub line items of a bundle product line item.
Parameters
obj $line_item: The parent line item.
Return value
array Array of all sub line item objects.
File
- ./
commerce_product_bundle.rules.inc, line 106 - Rules integration for product bundle.
Code
function commerce_product_bundle_load_sub_items($line_item) {
$sub_line_items = commerce_product_bundle_get_sub_line_items($line_item);
return array(
'sub_line_items' => $sub_line_items,
);
}