function hook_commerce_physical_order_weight_alter in Commerce Physical Product 7
Allows modules to alter the weight that has been determined for an order.
Parameters
&$weight: The weight field value array representing the weight of the order or NULL if no weight has yet been determined.
$order: The order object whose weight is being determined.
$unit: The unit of measurement to use for the returned weight of the order.
See also
commerce_physical_order_weight()
1 invocation of hook_commerce_physical_order_weight_alter()
- commerce_physical_order_weight in ./
commerce_physical.module - Determines the weight of an entire order.
File
- ./
commerce_physical.api.php, line 58 - Hooks provided by the Commerce Physical Product module.
Code
function hook_commerce_physical_order_weight_alter(&$weight, $order, $unit) {
// No example.
}