You are here

function commerce_pricing_attributes_entity_info in Commerce Pricing Attributes 7.2

Implements hook_entity_info().

File

./commerce_pricing_attributes.module, line 6

Code

function commerce_pricing_attributes_entity_info() {

  // Commerce Pricing Attributes Entity.
  $info['commerce_pricing_attibutes'] = array(
    'label' => t('Commerce Pricing Attributes'),
    'entity class' => 'EntityAPIController',
    'controller class' => 'EntityAPIController',
    'base table' => 'commerce_pricing_attributes',
    'fieldable' => TRUE,
    'entity keys' => array(
      'id' => 'attribute_id',
      'label' => 'name',
      'bundle' => 'type',
    ),
    'access callback' => 'commerce_pricing_attributes_access',
    'module' => 'commerce_pricing_attributes',
    'bundle keys' => array(
      'bundle' => 'type',
    ),
    'bundles' => array(),
  );
  return $info;
}