You are here

function commerce_product_bundle_field_formatter_view in Commerce Product Bundle 7

Same name and namespace in other branches
  1. 7.2 commerce_product_bundle.module \commerce_product_bundle_field_formatter_view()

Implements hook_field_formatter_view().

@ToDo: 'This code do nothing. I'm unsure if we can use the hook for something useful. Have a closer look, do something with it or remove it.'

File

./commerce_product_bundle.module, line 111
Allows the bundling of products in Drupal Commerce.

Code

function commerce_product_bundle_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $result = array();

  // Modify the product reference form view:
  if ($display['type'] == 'commerce_bundle_product_add_to_cart_form') {
    $settings = $display['settings'];
  }
  return $result;
}