You are here

function services_resource_uri in Services 7

Same name and namespace in other branches
  1. 6.3 services.runtime.inc \services_resource_uri()
  2. 6.2 services.module \services_resource_uri()
  3. 7.3 includes/services.runtime.inc \services_resource_uri()

Formats a resource uri using the formatter registered through services_resource_uri_formatter().

Parameters

array $path: An array of strings containing the component parts of the path to the resource.

Return value

string Returns the formatted resource uri, or NULL if no formatter has been registered.

3 calls to services_resource_uri()
_node_resource_create in services/node_service/node_resource.inc
_node_resource_index in services/node_service/node_resource.inc
_node_resource_retrieve in services/node_service/node_resource.inc

File

./services.module, line 381
@author Services Dev Team

Code

function services_resource_uri($path) {
  $formatter = services_resource_uri_formatter();
  if ($formatter) {
    return call_user_func($formatter, $path);
  }
  return NULL;
}