You are here

function commerce_addressbook_pane_edit in Commerce Addressbook 7.3

Submit callback for the "edit" button.

1 string reference to 'commerce_addressbook_pane_edit'
commerce_addressbook_pane_checkout_form in ./commerce_addressbook.checkout_pane.inc
Checkout pane callback: returns a customer profile edit form.

File

./commerce_addressbook.checkout_pane.inc, line 453
Based on commerce/modules/customer/commerce_customer.checkout_pane.inc

Code

function commerce_addressbook_pane_edit($form, &$form_state) {
  $pane_id = reset($form_state['triggering_element']['#parents']);
  $form_state['pane_' . $pane_id]['mode'] = 'edit';
  $form_state['rebuild'] = TRUE;
}