You are here

function commerce_pado_entity_info_alter in Commerce Product Add-on 7

File

./commerce_pado.module, line 84
Commerce Product Add On adds an option to entityreference fields that allows selected products to act as "add-ons" for the parent product.

Code

function commerce_pado_entity_info_alter(&$info) {
  $info['commerce_product']['view modes']['commerce_pado'] = array(
    'label' => t('Add On'),
    'custom settings' => TRUE,
  );
}