You are here

services_entity.services.inc in Services Entity API 7.2

Same filename and directory in other branches
  1. 7 services_entity.services.inc

File

services_entity.services.inc
View source
<?php

/**
 * Contains Services hooks.
 */

/**
 * Implements of hook_services_resources().
 */
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;
}

Functions