You are here

function cacheflush_entity_entity_info in CacheFlush 7.3

Implements hook_entity_info().

File

modules/cacheflush_entity/cacheflush_entity.module, line 11
Cacheflush entity to store presets.

Code

function cacheflush_entity_entity_info() {
  $return = array(
    'cacheflush' => array(
      'label' => t('Cacheflush'),
      'plural label' => t('Cacheflush Entities'),
      'module' => 'cacheflush_entity',
      'entity class' => 'CacheFlushEntity',
      'controller class' => 'CacheFlushEntityAPIController',
      'base table' => 'cacheflush',
      'static cache' => TRUE,
      'field cache' => TRUE,
      'load hook' => 'cacheflush_load',
      'uri callback' => 'entity_class_uri',
      'label callback' => 'entity_class_label',
      'fieldable' => TRUE,
      'entity keys' => array(
        'id' => 'id',
        'label' => 'title',
      ),
      'bundles' => array(),
    ),
  );
  return $return;
}