You are here

function uc_product_entity_extra_field_info in Ubercart 8.4

Implements hook_entity_extra_field_info().

File

uc_product/uc_product.module, line 413
The product module for Ubercart.

Code

function uc_product_entity_extra_field_info() {
  $extra = [];
  foreach (uc_product_types() as $type) {
    $extra['node'][$type] = [
      'display' => [
        'display_price' => [
          'label' => t('Display price'),
          'description' => t('High-visibility sell price.'),
          'weight' => -1,
        ],
        'add_to_cart' => [
          'label' => t('Add to cart form'),
          'description' => t('Add to cart form'),
          'weight' => 10,
        ],
      ],
    ];
  }
  return $extra;
}