You are here

function flexiform_checkout_pane_checkout_form_submit in Flexiform 7

Flexiform Checkout Pane Submit Callback.

File

./flexiform.checkout.inc, line 42
Flexiform Checkout integration.

Code

function flexiform_checkout_pane_checkout_form_submit(&$form, &$form_state, $checkout_pane, &$order) {
  $builder = $form[$checkout_pane['pane_id']]['#flexiform_builder'];
  $builder
    ->formSubmit($form[$checkout_pane['pane_id']], $form_state);

  // @todo: See if we can set the base entity on the builder rather than pulling
  // it off afterwards.
  $order = $builder
    ->getFormEntity('base_entity');
}