function restful_entity_info in RESTful 7
Same name and namespace in other branches
- 7.2 restful.entity.inc \restful_entity_info()
Implements hook_entity_info().
File
- ./
restful.entity.inc, line 11 - Contains entity related code.
Code
function restful_entity_info() {
$items['rate_limit'] = array(
'label' => t('Rate limit'),
'entity class' => 'RestfulRateLimit',
'controller class' => 'EntityAPIController',
'base table' => 'restful_rate_limit',
'fieldable' => TRUE,
'entity keys' => array(
'id' => 'rlid',
'label' => 'identifier',
'bundle' => 'event',
),
'bundles' => array(),
'bundle keys' => array(
'bundle' => 'type',
),
'module' => 'restful',
'entity cache' => module_exists('entitycache'),
);
return $items;
}