function restws_restws_resource_info in RESTful Web Services 7
Same name and namespace in other branches
- 7.2 restws.module \restws_restws_resource_info()
Implements hook_restws_resource_info().
Provides resources for all entity types.
File
- ./
restws.module, line 37 - RESTful web services module.
Code
function restws_restws_resource_info() {
foreach (entity_get_info() as $entity_type => $info) {
$result[$entity_type] = array(
'label' => $info['label'],
'class' => 'RestWSEntityResourceController',
);
}
return $result;
}