function commerce_recurring_entity_info in Commerce Recurring Framework 7.2
Implements hook_entity_info().
File
- ./
commerce_recurring.module, line 11 - Commerce recurring module file.
Code
function commerce_recurring_entity_info() {
$return = array(
'commerce_recurring' => array(
'label' => t('Commerce recurring entity'),
'plural label' => t('Commerce recurring entities'),
'entity class' => 'Entity',
'controller class' => 'EntityAPIController',
'views controller class' => 'EntityDefaultViewsController',
'base table' => 'commerce_recurring',
'uri callback' => 'commerce_recurring_uri',
'fieldable' => TRUE,
'entity keys' => array(
'id' => 'id',
'bundle' => 'type',
),
'bundle keys' => array(
'bundle' => 'type',
),
'bundles' => array(
'product' => array(
'label' => t('Commerce recurring product'),
),
'order' => array(
'label' => t('Commerce recurring order'),
),
),
'view modes' => array(
'full' => array(
'label' => t('Admin display'),
'custom settings' => FALSE,
),
),
'module' => 'commerce_recurring',
'access arguments' => array(
'user key' => 'uid',
'access tag' => 'commerce_recurring_access',
),
'permission labels' => array(
'singular' => t('recurring entity'),
'plural' => t('recurring entities'),
),
// Prevent Redirect from altering the line item form.
'redirect' => FALSE,
),
);
return $return;
}