public function clients_credentials_storage_variable::credentialsLoad in Web Service Clients 7.3
Load credentials, if any exist, into the connection.
Parameters
$connection: The connection to load credentials from.
File
- plugins/
clients_credentials_storage/ variables.inc, line 44
Class
- clients_credentials_storage_variable
- Plugin handler class.
Code
public function credentialsLoad($connection) {
$credentials = variable_get($this
->variableName($connection), array());
foreach ($credentials as $property_name => $value) {
$connection->credentials[$property_name] = $value;
}
}