You are here

function entity_rules_entity_info in Entity Rules 7

Implements hook_entity_info().

File

./entity_rules.module, line 13
Module file for the Entity Rules.

Code

function entity_rules_entity_info() {
  $return = array();

  // The entity that holds information about the entity types
  $return['entity_rule_setting'] = array(
    'label' => t('Entity Rule Setting'),
    'entity class' => 'Entity',
    'controller class' => 'EntityAPIControllerExportable',
    'base table' => 'entity_rule_setting',
    'fieldable' => FALSE,
    'exportable' => TRUE,
    'entity keys' => array(
      'id' => 'id',
    ),
    'bundles' => array(
      'entity_rule_setting' => array(
        'label' => t('Entity Rules Setting'),
      ),
    ),
    'view modes' => array(
      'full' => array(
        'label' => t('Full content'),
        'custom settings' => FALSE,
      ),
    ),
    'module' => 'entity_rules',
    'metadata controller class' => 'EntityDefaultMetadataController',
  );
  return $return;
}