function commerce_order_customer_profile_form_submit in Commerce Core 7
Submit callback: display a message when a profile is cloned.
1 string reference to 'commerce_order_customer_profile_form_submit'
- commerce_order_form_commerce_customer_customer_profile_form_alter in modules/
order/ commerce_order.module - Implements hook_form_FORM_ID_alter().
File
- modules/
order/ commerce_order.module, line 605 - Defines the core Commerce order entity and API functions to manage orders and interact with them.
Code
function commerce_order_customer_profile_form_submit($form, &$form_state) {
if ($form_state['original_profile_id'] != $form_state['customer_profile']->profile_id) {
drupal_set_message(t('The customer profile was cloned to prevent data loss on orders referencing the profile. It is now profile @profile_id.', array(
'@profile_id' => $form_state['customer_profile']->profile_id,
)));
}
}