function services_resource_uri in Services 6.2
Same name and namespace in other branches
- 6.3 services.runtime.inc \services_resource_uri()
- 7.3 includes/services.runtime.inc \services_resource_uri()
- 7 services.module \services_resource_uri()
Formats a resource uri as registered by 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 CRUD resource functionality for nodes.
File
- ./
services.module, line 499 - Provides a generic but powerful API for exposing web services.
Code
function services_resource_uri($path) {
$formatter = services_resource_uri_formatter();
if ($formatter) {
return call_user_func($formatter, $path);
}
return NULL;
}