You are here

function services_entity_services_resources in Services Entity API 7.2

Same name and namespace in other branches
  1. 7 services_entity.services.inc \services_entity_services_resources()

Implements of hook_services_resources().

File

./services_entity.services.inc, line 10

Code

function services_entity_services_resources() {
  $resources = array();
  foreach (entity_get_info() as $entity_type => $info) {
    $controller = _services_entity_get_controller($entity_type);
    $resources["entity_{$entity_type}"] = $controller
      ->resourceInfo($entity_type);
  }
  return $resources;
}