You are here

function drupal_client_page in Drupal 4

Same name and namespace in other branches
  1. 5 modules/drupal/drupal.module \drupal_client_page()

Formats a list of all clients.

This function may be called from a custom page on sites that are Drupal directory servers.

File

modules/drupal.module, line 211
Lets users log in using a Drupal ID and can notify a central server about your site.

Code

function drupal_client_page($sort = 'name') {
  $result = db_query('SELECT * FROM {client} ORDER BY %s', $sort);
  $clients = array();
  while ($client = db_fetch_object($result)) {
    $clients[] = $client;
  }
  return theme('client_list', $clients);
}