You are here

function clients_connections in Web Service Clients 6

3 string references to 'clients_connections'
clients_connection_edit in ./clients.module
clients_connection_save in ./clients.module
clients_menu in ./clients.module
Implementation of hook_menu()

File

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

Code

function clients_connections() {
  $connections = array();
  foreach (array_keys(clients_connections_list()) as $cid) {
    $connection = clients_connection_load($cid);
    $connections[] = array(
      'name' => l($connection->name, 'admin/settings/clients/connection/' . $cid),
      'type' => $connection->type,
      'endpoint' => $connection->endpoint,
      'operations' => $connection->operations,
    );
  }
  if (!count($connections)) {
    $connections[] = array(
      array(
        'data' => t('No connections defined yet.'),
        'colspan' => '4',
      ),
    );
  }
  return theme_table(array(
    'Name',
    'Type',
    'Endpoint',
    'Operations',
  ), $connections);
}