function clients_service_options in Web Service Clients 7
Same name and namespace in other branches
- 6 clients.module \clients_service_options()
hook_clients_service_options, configure options
1 call to clients_service_options()
- clients_resources_form in ./
clients.module - @todo validate uniqueness of name
File
- ./
clients.module, line 361 - Clients module - handles keys and service connections and provides an API for clients
Code
function clients_service_options($connection_id, $wrapper, $wrapper_values, $resource) {
$service = clients_connection_load($connection_id);
// TODO: this pattern is completely wrong: each resource has only one client,
// therefore invoking ALL hook implementations is silly -- find out the base
// module of the current resource and invoke the hook in JUST that one.
return module_invoke_all('clients_service_options', $service, $wrapper, $wrapper_values, $resource);
}