You are here

function fe_paths_entity_info in File Entity Paths 7.2

Implements hook_entity_info().

File

./fe_paths.module, line 100
Contains functions for the File Entity Paths module.

Code

function fe_paths_entity_info() {
  $return = array(
    'fe_paths_config' => array(
      'label' => t('File entity paths configuration'),
      'entity class' => 'Entity',
      'controller class' => 'EntityAPIControllerExportable',
      'base table' => 'fe_paths_config',
      'fieldable' => FALSE,
      'entity keys' => array(
        'id' => 'id',
        'name' => 'machine_name',
        'label' => 'label',
      ),
      'module' => 'fe_paths',
      'exportable' => TRUE,
      'label callback' => 'entity_class_label',
      'uri callback' => 'entity_class_uri',
    ),
  );
  if (module_exists('entitycache')) {
    $return['fe_paths_config']['entity cache'] = TRUE;
  }
  return $return;
}