function services_client_connection_load in Services Client 7.2
Same name and namespace in other branches
- 7 services_client_connection/services_client_connection.module \services_client_connection_load()
Load connection configuration
Parameters
$name: Name of the connection
4 calls to services_client_connection_load()
- EventHandler::getConnectionId in include/
event.inc - Retrieve remote connection id.
- services_client_connection_get in services_client_connection/
services_client_connection.module - Create new connection client
- 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
- services_client_ui::list_build_row in plugins/
export_ui/ services_client_ui.class.php - Build a row based on the item.
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;
}