You are here

function services_process_resources in Services 6.2

Same name and namespace in other branches
  1. 7 services.module \services_process_resources()

Processes passed resources and adds controllers to the controller array.

Parameters

array $resources: The resources that should be processed.

string $controllers: An array (passed by reference) that will be populated with the controllers of the passed resources.

string $path: Optional. Deprecated.

1 call to services_process_resources()
services_get_all_resources in ./services.module
Gets all resource definitions.

File

./services.module, line 589
Provides a generic but powerful API for exposing web services.

Code

function services_process_resources(&$resources, &$controllers, $path = array()) {
  foreach ($resources as $name => &$resource) {
    if (drupal_substr($name, 0, 1) != '#') {
      _services_process_resource(array_merge($path, array(
        $name,
      )), $resource, $controllers);
    }
  }
}