function commerce_price_table_ief_entity_info_alter in Commerce Price Table 7
Implements hook_entity_info_alter().
File
- commerce_price_table_ief/
commerce_price_table_ief.module, line 6
Code
function commerce_price_table_ief_entity_info_alter(&$entity_info) {
// We'll use our custom contoller.
if (isset($entity_info['commerce_product'])) {
$entity_info['commerce_product']['inline entity form'] = array(
'controller' => 'PriceTableCommerceProductInlineEntityFormController',
);
// We'll define a custom view mode for this entity.
$entity_info['commerce_product']['view modes']['inline_entity_form'] = array(
'label' => t('Inline Entity Form'),
'custom settings' => TRUE,
);
}
}