You are here

function services_client_admin_list in Services Client 7

List the all connections and hooks

File

./services_client.admin.inc, line 61
Administration pages for configuring services client module.

Code

function services_client_admin_list() {

  // Load all hooks
  $hooks = services_client_get_client_hooks_list(array(
    'num' => 'all',
  ));
  $groupped = array();
  foreach ($hooks as $hook) {
    $groupped[$hook->conn_name][] = $hook;
  }

  // Load all connections
  $connections = services_client_connection_load_all();
  return array(
    '#theme' => 'services_client_admin_list',
    '#connections' => $connections,
    '#groupped_hooks' => $groupped,
  );
}