function hook_commerce_physical_entity_dimensions_field_name_alter in Commerce Physical Product 7
Allows modules to specify a different dimensions field name for the given entity than the one determined by Commerce Physical Product.
Parameters
&$field_name: The name of the field instance on the entity that is currently specified as the dimensions field to use in dimensions and volume calculations.
$entity_type: The type of entity the field is attached to.
$entity: The actual entity whose dimensions value is being determined.
See also
commerce_physical_entity_dimensions_field_name()
1 invocation of hook_commerce_physical_entity_dimensions_field_name_alter()
- commerce_physical_entity_dimensions_field_name in ./
commerce_physical.module - Determines the dimensions field to use for a given entity.
File
- ./
commerce_physical.api.php, line 76 - Hooks provided by the Commerce Physical Product module.
Code
function hook_commerce_physical_entity_dimensions_field_name_alter(&$field_name, $entity_type, $entity) {
// No example.
}