You are here

public static function clients_connection_drupal_services::connect in Web Service Clients 7

Use for testing

1 call to clients_connection_drupal_services::connect()
clients_connection_drupal_services::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

File

backends/clients_drupal/clients_drupal.inc, line 211
Defines methods and calls to Drupal services

Class

clients_connection_drupal_services
General Drupal client 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;
}