function commerce_customer_cancel_profile in Commerce Core 7
Submit callback to cancel adding a new customer profile to the order.
1 string reference to 'commerce_customer_cancel_profile'
- commerce_customer_field_widget_form in modules/
customer/ commerce_customer.module - Implements hook_field_widget_form().
File
- modules/
customer/ commerce_customer.module, line 1149 - Defines the customer profile entity and API functions to manage customers and interact with them.
Code
function commerce_customer_cancel_profile($form, &$form_state) {
$profile_type = $form_state['triggering_element']['#commerce_customer_profile_type'];
$form_state['add_profile_' . $profile_type] = FALSE;
$form_state['rebuild'] = TRUE;
}