You are here

function clients_drupal_clients_connection_type_info in Web Service Clients 7.3

Same name and namespace in other branches
  1. 6.2 connections/clients_drupal/clients_drupal.module \clients_drupal_clients_connection_type_info()
  2. 7 backends/clients_drupal/clients_drupal.module \clients_drupal_clients_connection_type_info()
  3. 7.2 connections/clients_drupal/clients_drupal.module \clients_drupal_clients_connection_type_info()

Implements hook_clients_connection_type_info().

Define the connection types we provide.

File

connections/clients_drupal/clients_drupal.module, line 30
Provides connection types for Clients module that connect to remote Drupal sites running Services module with the XMLRPC server.

Code

function clients_drupal_clients_connection_type_info() {
  return array(
    // Key by machine name. Used to determine class names.
    'drupal_services_5' => array(
      // Human-readable label.
      'label' => t('Drupal XMLRPC Services 5'),
      // Description for UI.
      'description' => t('Connects to Drupal sites using Services 5.x-0.92 with XMLRPC endpoints.'),
      // Test handler classes.
      'tests' => array(
        'connect' => 'ClientsConnectionDrupalTestConnect',
        'login' => 'ClientsConnectionDrupalTestLogin',
        'node_load' => 'ClientsConnectionDrupalTestNodeLoad5',
      ),
    ),
    'drupal_services_6_2' => array(
      'label' => t('Drupal XMLRPC Services 6.x-2.x'),
      'description' => t('Connects to Drupal sites using Services 6.x-2.x with XMLRPC endpoints.'),
      'tests' => array(
        'connect' => 'ClientsConnectionDrupalTestConnect',
        'login' => 'ClientsConnectionDrupalTestLogin',
        'node_load' => 'ClientsConnectionDrupalTestNodeLoad6_2',
      ),
    ),
    'drupal_services_7_3' => array(
      'label' => t('Drupal XMLRPC Services 7.x-3.x'),
      'description' => t('Connects to Drupal sites using Services 7.x-3.x with XMLRPC endpoints.'),
      'tests' => array(
        'connect' => 'ClientsConnectionDrupalTestConnect',
        'login' => 'ClientsConnectionDrupalTestLogin',
        'node_load' => 'ClientsConnectionDrupalTestNodeLoad7_3',
      ),
    ),
  );
}