function services_client_connection_invoke in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/services_client_connection.module \services_client_connection_invoke()
Invoke a node hook.
Parameters
$node: A node object or a string containing the node type.
$hook: A string containing the name of the hook.
$a2, $a3, $a4: Arguments to pass on to the hook, after the $node argument.
Return value
The returned value of the invoked hook.
2 calls to services_client_connection_invoke()
- services_client_connection_load in services_client_connection/
services_client_connection.module - Load connection configuration
- services_client_connection_save in services_client_connection/
services_client_connection.module - Save services client connection configuration
File
- services_client_connection/
services_client_connection.module, line 253 - Services Client Connection allows to configure different connections via UI and store them as exportable configuration. API client should be able to communicate with different versions of remote Services module via unified API client.
Code
function services_client_connection_invoke($connection, $hook) {
foreach (module_implements('services_client_connection_' . $hook) as $module) {
$function = $module . '_services_client_connection_' . $hook;
$function($connection);
}
}