public static function ClientsServicesDrupal::connect in Web Service Clients 6
Use for testing
2 calls to ClientsServicesDrupal::connect()
- ClientsServicesDrupal::getUser in backends/
clients_drupal/ clients_drupal.inc - Connects to Drupal Services and logs in the user provided in the config. Returns a session for the user. @todo needs error catching in case service is down
- clients_drupal_add_validate in backends/
clients_drupal/ clients_drupal.module - Implementation of hook_validate()
File
- backends/
clients_drupal/ clients_drupal.inc, line 17 - Defines methods and calls to Drupal services
Class
Code
public static function connect($connection) {
$session = xmlrpc($connection->endpoint, 'system.connect');
if ($session === FALSE) {
return xmlrpc_error();
// null for services 2...
}
return $session;
}