You are here

function redhen_relation_entity_info in RedHen CRM 7

Implements hook_entity_info().

File

modules/redhen_relation/redhen_relation.module, line 714
Redhen CRM Relation Module.

Code

function redhen_relation_entity_info() {
  $entities = array(
    'redhen_relation_role' => array(
      'label' => t('RedHen Relation Role'),
      'plural label' => t('RedHen Relation Roles'),
      'controller class' => 'RedhenRelationRoleEntityController',
      'entity class' => 'RedhenRelationRole',
      'base table' => 'redhen_relation_role',
      'fieldable' => FALSE,
      'entity keys' => array(
        'id' => 'redhen_relation_role_id',
        'label' => 'label',
        'name' => 'name',
      ),
      'bundles' => array(
        'redhen_relation_role' => array(
          'label' => 'RedHen Relation Role',
        ),
      ),
      'admin ui' => array(
        'path' => 'admin/structure/redhen/relation_roles',
        'file' => 'redhen_relation_role.forms.inc',
        'file path' => drupal_get_path('module', 'redhen_relation') . '/includes',
        'controller class' => 'RedhenRelationRoleUIController',
      ),
      'token type' => 'redhen_relation_role',
      'module' => 'redhen_relation',
      'access callback' => 'redhen_relation_role_access',
      'exportable' => TRUE,
    ),
  );
  return $entities;
}