Commit 899baa53 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 4ff49bb2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -419,3 +419,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';
}