function commerce_shipping_update_7001 in Commerce Shipping 7.2
Same name and namespace in other branches
- 7 commerce_shipping.install \commerce_shipping_update_7001()
Add default profile reference field on order if needed.
File
- ./
commerce_shipping.install, line 46 - Contains update hooks for the commerce_shipping module.
Code
function commerce_shipping_update_7001(&$sandbox) {
$profile_types = commerce_shipping_commerce_customer_profile_type_info();
$profile_type = $profile_types['shipping'];
commerce_order_configure_customer_profile_type($profile_type['type'], $profile_type['name']);
return t('Commerce customer profile field added to commerce order.');
}