You are here

function commerce_gc_entity_info in Commerce GC 7

File

./commerce_gc.module, line 35
Provides Giftcard coupon bundle, Giftcard Transaction entity and basic user interface elements.

Code

function commerce_gc_entity_info() {
  $entity_info['commerce_gc_transaction'] = array(
    'label' => t('Commerce giftcard transaction'),
    'plural label' => t('Commerce giftcard transactions'),
    'views controller class' => 'CommerceGCTransactionViewsController',
    'controller class' => 'CommerceGCTransactionEntityController',
    'base table' => 'commerce_gc_transaction',
    'fieldable' => FALSE,
    'locking mode' => 'pessimistic',
    'entity keys' => array(
      'id' => 'transaction_id',
      'label' => 'transaction_id',
    ),
    'access callback' => 'commerce_entity_access',
    'access arguments' => array(
      'access tag' => 'commerce_gc_transaction_access',
    ),
    'bundles' => array(
      'commerce_gc_transaction' => array(
        'label' => t('Commerce giftcard transaction'),
      ),
    ),
    'module' => 'commerce_gc',
    'permission labels' => array(
      'singular' => t('Giftcard transaction'),
      'plural' => t('Giftcard Transactions'),
    ),
  );
  return $entity_info;
}