You are here

function flexiform_checkout_pane_checkout_form in Flexiform 7

Flexiform Checkout Pane Callback.

File

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

Code

function flexiform_checkout_pane_checkout_form($form, &$form_state, $checkout_pane, $order) {
  $pane_form = array();
  $pane_form['#flexiform'] = $flexiform = flexiform_load($checkout_pane['flexiform']);
  $pane_form['#flexiform_builder'] = $builder = $flexiform
    ->getBuilder($order);
  $pane_form['#parents'] = array(
    $checkout_pane['pane_id'],
  );
  $pane_form += $builder
    ->form($pane_form, $form_state, $order);
  return $pane_form;
}