You are here

function flexiform_commerce_checkout_pane_info in Flexiform 7

Implements hook_commerce_checkout_pane_info().

File

./flexiform.commerce.inc, line 10
Contains Drupal Commerce Hooks.

Code

function flexiform_commerce_checkout_pane_info() {
  $panes = array();

  /** @var \FlexiformController $controller */
  $controller = entity_get_controller('flexiform');
  foreach ($controller
    ->loadWithDisplay('FlexiformDisplayCheckoutPane') as $form) {
    $display = $form
      ->getDisplay('FlexiformDisplayCheckoutPane');
    $panes['flexiform__' . $form->form] = array(
      'pane_id' => 'flexiform__' . $form->form,
      'title' => $display->configuration['title'],
      'name' => $display->configuration['title'],
      'review' => FALSE,
      'file' => 'flexiform.checkout.inc',
      'base' => 'flexiform_checkout_pane',
      'flexiform' => $form->form,
    );
  }
  return $panes;
}