You are here

function _services_core_resources in Services 6.3

Same name and namespace in other branches
  1. 7.3 includes/services.resource_build.inc \_services_core_resources()

Supplies the resource definitions for Drupal core data

Return value

array

1 call to _services_core_resources()
services_services_resources in ./services.module
Implementation of hook_services_resources().

File

./services.resource_build.inc, line 188
Contains functions necessary for building the resource definitions. This is only needed the first time a the resources for a endpoint are fetched, or when the cache has been cleared.

Code

function _services_core_resources() {
  require_once "resources/comment_resource.inc";
  require_once "resources/file_resource.inc";
  require_once "resources/node_resource.inc";
  require_once "resources/system_resource.inc";
  require_once "resources/taxonomy_resource.inc";
  require_once "resources/user_resource.inc";
  $resources = array(
    '#api_version' => 3002,
  );
  $resources += _comment_resource_definition();
  $resources += _file_resource_definition();
  $resources += _node_resource_definition();
  $resources += _system_resource_definition();
  $resources += _taxonomy_resource_definition();
  $resources += _user_resource_definition();
  return $resources;
}