You are here

function advancedqueue_entity_info in Advanced Queue 7

Implements hook_advancedqueue_entity_info().

File

./advancedqueue.module, line 36
Helper module for advanced queuing.

Code

function advancedqueue_entity_info() {
  $entity_info['advancedqueue_item'] = array(
    'label' => t('Advanced queue item'),
    'controller class' => module_exists('entity') ? 'EntityAPIController' : 'DrupalDefaultEntityController',
    'metadata controller class' => 'EntityDefaultMetadataController',
    'base table' => 'advancedqueue',
    'module' => 'advancedqueue',
    'entity keys' => array(
      'id' => 'item_id',
      'label' => 'title',
    ),
  );
  return $entity_info;
}