function services_client_connection_load in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/services_client_connection.module \services_client_connection_load()
Load connection configuration
Parameters
$name: Name of the connection
3 calls to services_client_connection_load()
- services_client_connection_get in services_client_connection/
services_client_connection.module - Create new connection client
- services_client_data_process in ./
services_client.module - This function takes inbound data objects and a type and determines if there are tasks for them. If there are, it checks conditions and then generates connections and organizes the data to pass to the calling functions
- services_client_oauth_access_callback in services_client_connection/
modules/ services_client_oauth/ services_client_oauth.module - Request callback to process and store access token
1 string reference to 'services_client_connection_load'
- services_client_connection_schema in services_client_connection/
services_client_connection.install - Implementation of hook_schema().
File
- services_client_connection/
services_client_connection.module, line 209 - 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_load($name) {
ctools_include('export');
$result = ctools_export_load_object('services_client_connection', 'names', array(
$name,
));
if (isset($result[$name]) && ($connection = $result[$name])) {
services_client_connection_invoke($connection, 'load');
return $connection;
}
return NULL;
}