You are here

function clients_connections_list in Web Service Clients 6

Same name and namespace in other branches
  1. 6.2 clients.connection.admin.inc \clients_connections_list()
  2. 7 clients.connection.admin.inc \clients_connections_list()
  3. 7.2 clients.connection.admin.inc \clients_connections_list()

Loads all connections

Return value

Array

2 calls to clients_connections_list()
clients_connections in ./clients.module
clients_resources_form in ./clients.module
@todo validate uniqueness of name

File

./clients.module, line 592
Clients module - handles keys and service connections and provides an API for clients @author Django Beatty - adub

Code

function clients_connections_list() {
  $connections = array();
  $result = db_query("SELECT * FROM {clients_connections} ORDER BY name");
  while ($connection = db_fetch_object($result)) {
    $connections[$connection->cid] = array(
      'name' => $connection->name,
      'type' => $connection->type,
      'endpoint' => $connection->endpoint,
    );
  }
  return $connections;
}