Commit 04d7c675 authored by Finne Fortuin's avatar Finne Fortuin Committed by Jonathan Sacksick
Browse files

Issue #3059187 by finne: Support the Field group module for orders.

parent 48c9dcc5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -435,3 +435,13 @@ function commerce_order_theme_registry_alter(&$theme_registry) {
    'adjustments' => [],
  ];
}

/**
 * Implements hook_field_group_content_element_keys_alter().
 *
 * Allow orders to render fields groups defined from Fields UI.
 */
function commerce_order_field_group_content_element_keys_alter(&$keys) {
  $keys['commerce_order'] = 'order';
  $keys['commerce_order_item'] = 'order_item';
}