You are here

function hook_commerce_shipping_line_item_new_alter in Commerce Shipping 7.2

Allows modules to alter newly created shipping line items.

Shipping line items will be altered after their service and unit price values have been set.

Parameters

object $line_item: The newly created shipping line item.

See also

commerce_shipping_line_item_new()

1 invocation of hook_commerce_shipping_line_item_new_alter()
commerce_shipping_line_item_new in ./commerce_shipping.module
Creates a new shipping line item populated with the proper shipping values.

File

./commerce_shipping.api.php, line 225
Contains API for commerce shipping module.

Code

function hook_commerce_shipping_line_item_new_alter($line_item) {

  // No example.
}